Skip to content

Commit

Permalink
kpkg: installcmd: add extra debug line
Browse files Browse the repository at this point in the history
  • Loading branch information
kreatoo committed Sep 12, 2023
1 parent 7484bfe commit 1ca4291
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions kpkg/commands/installcmd.nim
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,8 @@ proc install_pkg*(repo: string, package: string, root: string) =
createSymlink(package, root&"/var/cache/kpkg/installed/"&i)


var cmd: tuple[output: string, exitCode: int]
cmd = execCmdEx("tar -hxf "&tarball&" -C "&root)
debug "Executing 'tar -hxf "&tarball&" -C "&root&"'"
let cmd = execCmdEx("tar -hxf "&tarball&" -C "&root)
if cmd.exitCode != 0:
debug cmd.output
removeDir(root&"/var/cache/kpkg/installed/"&package)
Expand Down

0 comments on commit 1ca4291

Please sign in to comment.