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 21:35:02 +0100
commit6d3ea93eb519b274ccca6da8b1beba5f40298e58 (patch)
tree9e60a3400699565d2c6648df5b84bdd9473f7af6
parentd6c91c9da1865a29f4db2d4ac3ce3acb6fe4fdba (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 f05e445e..e92ba2e3 100755
--- a/gentree.py
+++ b/gentree.py
@@ -407,6 +407,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))