]> git.decadent.org.uk Git - dak.git/commitdiff
dont know python? come, join the ftpteam and write code. works for me.
authorJoerg Jaspert <joerg@debian.org>
Sun, 16 Sep 2012 16:16:35 +0000 (18:16 +0200)
committerJoerg Jaspert <joerg@debian.org>
Sun, 16 Sep 2012 16:16:35 +0000 (18:16 +0200)
Signed-off-by: Joerg Jaspert <joerg@debian.org>
daklib/archive.py
daklib/utils.py

index 6562c67c3570a63daefa5f1672dd990665ebd876..78df632e7e85734b94b95250b964f39dc1c4675e 100644 (file)
@@ -624,7 +624,7 @@ class ArchiveUpload(object):
         session = self.transaction.session
 
         self.directory = utils.temp_dirname(parent=cnf.get('Dir::TempPath'),
-                                            mode=0o2750, group=cnf.unprivgroup)[1]
+                                            mode=0o2750, group=cnf.unprivgroup)
         with FilesystemTransaction() as fs:
             src = os.path.join(self.original_directory, self.original_changes.filename)
             dst = os.path.join(self.directory, self.original_changes.filename)
index 25d768d10f9fb442e6497190c9e2249a80d4e527..8a160356f721f0ded72533d5dfed40207fb41c77 100755 (executable)
@@ -1497,12 +1497,12 @@ def temp_dirname(parent=None, prefix="dak", suffix="", mode=None, group=None):
 
     """
 
-    (tfd, tfname) = tempfile.mkdtemp(suffix, prefix, parent)
+    tfname = tempfile.mkdtemp(suffix, prefix, parent)
     if mode:
         os.chmod(tfname, mode)
     if group:
         os.chown(tfname, -1, group)
-    return (tfd, tfname)
+    return tfname
 
 ################################################################################