summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHauke Mehrtens <hauke@hauke-m.de>2013-10-21 23:58:09 +0200
committerHauke Mehrtens <hauke@hauke-m.de>2013-10-28 22:20:17 +0100
commit6cb6f8bc1574e300c1b11e83b72a397f16641255 (patch)
tree4882a109417ae8d58fa0139c578afe5dee8064fb
parentc0c6e351339ff2f9a0f13e08d432148693c8a923 (diff)
gentree.py: add ending slash to upload path
Upstream commit: 3455026991cda1129ae313830ecd7386f75362a5 the filename in kup put should end with a slash otherwise it tried to overwrite this file. Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
-rwxr-xr-xgentree.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/gentree.py b/gentree.py
index cb5431d1..bc446d4e 100755
--- a/gentree.py
+++ b/gentree.py
@@ -425,6 +425,7 @@ def upload_release(args, rel_prep, logwrite=lambda x:None):
if (not args.kup_test):
logwrite("create directory: %s" % korg_path)
logwrite(kup.mkdir(korg_path))
+ 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))