]> git.decadent.org.uk Git - dak.git/commitdiff
sod off, None. also, group= is helpful there
authorJoerg Jaspert <joerg@debian.org>
Sun, 16 Sep 2012 16:03:48 +0000 (18:03 +0200)
committerJoerg Jaspert <joerg@debian.org>
Sun, 16 Sep 2012 16:03:48 +0000 (18:03 +0200)
Signed-off-by: Joerg Jaspert <joerg@debian.org>
daklib/archive.py

index dcdcc8e121ec46b8f50b599d89c7472b14a6d216..6562c67c3570a63daefa5f1672dd990665ebd876 100644 (file)
@@ -623,8 +623,8 @@ class ArchiveUpload(object):
         cnf = Config()
         session = self.transaction.session
 
-        (None, self.directory) = utils.temp_dirname(parent=cnf.get('Dir::TempPath'),
-                                                    mode=0o2750, cnf.unprivgroup)
+        self.directory = utils.temp_dirname(parent=cnf.get('Dir::TempPath'),
+                                            mode=0o2750, group=cnf.unprivgroup)[1]
         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)