gentree.py: log kup command before executing
authorHauke Mehrtens <hauke@hauke-m.de>
Mon, 21 Oct 2013 21:43:25 +0000 (23:43 +0200)
committerHauke Mehrtens <hauke@hauke-m.de>
Mon, 21 Oct 2013 21:44:20 +0000 (23:44 +0200)
Add a logging of the next command to be executed.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
gentree.py

index d101bdb4cae4d69877a17f4a2726ab2a04fecce6..cb5431d195c8a1704a48103c57adc3382a6e7154 100755 (executable)
@@ -423,8 +423,10 @@ def upload_release(args, rel_prep, logwrite=lambda x:None):
     for path in rel_prep['paths_to_create']:
         korg_path += '/' + path
         if (not args.kup_test):
+            logwrite("create directory: %s" % korg_path)
             logwrite(kup.mkdir(korg_path))
     if (not args.kup_test):
+        logwrite("upload file %s to %s" % (bzip2_name, korg_path))
         logwrite(kup.put(bzip2_name, tar_name + '.asc', korg_path))
         logwrite("\nFinished upload!\n")
         logwrite("Target path contents:")