]> err.no Git - dak/commitdiff
daklib/archive.py: change permissions for copied .changes and byhand files
authorAnsgar Burchardt <ansgar@debian.org>
Tue, 18 Sep 2012 18:52:34 +0000 (20:52 +0200)
committerAnsgar Burchardt <ansgar@debian.org>
Tue, 18 Sep 2012 21:21:15 +0000 (23:21 +0200)
daklib/archive.py

index 677d783cdd04530e9752b2656d422f4de5e6adda..0f3a316e79f4f9a0c41959098cd6bccd422959ab 100644 (file)
@@ -950,7 +950,7 @@ class ArchiveUpload(object):
         if suite.copychanges:
             src = os.path.join(self.directory, self.changes.filename)
             dst = os.path.join(suite.archive.path, 'dists', suite.suite_name, self.changes.filename)
-            self.transaction.fs.copy(src, dst)
+            self.transaction.fs.copy(src, dst, mode=suite.archive.mode)
 
         return (db_source, db_binaries)
 
@@ -998,7 +998,7 @@ class ArchiveUpload(object):
         self.transaction.session.flush()
 
         dst = os.path.join(policy_queue.path, self.changes.filename)
-        self.transaction.fs.copy(self.changes.path, dst)
+        self.transaction.fs.copy(self.changes.path, dst, mode=policy_queue.change_perms)
 
         return u
 
@@ -1075,7 +1075,7 @@ class ArchiveUpload(object):
 
         src = os.path.join(self.directory, hashed_file.filename)
         dst = os.path.join(policy_queue.path, hashed_file.filename)
-        fs.copy(src, dst)
+        fs.copy(src, dst, mode=policy_queue.change_perms)
 
         return byhand_file