[PATCH 4/4] gentree.py: add ending slash to upload path

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



the filename in kup put should end with a slash otherwise it tried to
overwrite this file.

Signed-off-by: Hauke Mehrtens <hauke@xxxxxxxxxx>
---
 gentree.py |    1 +
 1 file changed, 1 insertion(+)

diff --git a/gentree.py b/gentree.py
index cb5431d..bc446d4 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))
-- 
1.7.10.4

--
To unsubscribe from this list: send the line "unsubscribe backports" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux