Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
probonopd committed Nov 4, 2019
1 parent d7e9e25 commit f51680c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
9 changes: 6 additions & 3 deletions src/appimaged/appimage.go
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,9 @@ func (ai AppImage) discoverContents() {
} else if ai.imagetype == 2 {
cmd = exec.Command(here()+"/unsquashfs", "-f", "-n", "-ll", "-o", strconv.FormatInt(ai.offset, 10), "-d", "'"+ai.path+"'")
}
log.Printf("cmd: %q\n", cmd)
if *verbosePtr == true {
log.Printf("cmd: %q\n", cmd)
}
var out bytes.Buffer
cmd.Stdout = &out
err := cmd.Run()
Expand All @@ -99,8 +101,9 @@ func (ai AppImage) calculateMD5filenamepart() string {
}

func runCommand(cmd *exec.Cmd) (io.Writer, error) {

log.Printf("runCommand: %q\n", cmd)
if *verbosePtr == true {
log.Printf("runCommand: %q\n", cmd)
}
var out bytes.Buffer
cmd.Stdout = &out
err := cmd.Run()
Expand Down
4 changes: 2 additions & 2 deletions src/appimaged/udisks.go
Original file line number Diff line number Diff line change
Expand Up @@ -130,8 +130,8 @@ func monitorUdisks() {
log.Println("monitor: Monitoring DBus session bus")

for v := range c {
log.Println("udisks: XXXXX", v.Headers, v.Body)
// log.Println("udisks: XXXXX", v.Headers[3])
log.Println("udisks:", v.Headers, v.Body)
// log.Println("udisks:", v.Headers[3])
watchDirectories()
}

Expand Down

0 comments on commit f51680c

Please sign in to comment.