From: Ansgar Burchardt Date: Tue, 18 Sep 2012 18:52:34 +0000 (+0200) Subject: daklib/archive.py: change permissions for copied .changes and byhand files X-Git-Url: https://git.decadent.org.uk/gitweb/?a=commitdiff_plain;h=b8c51297d7b03115240198383f76a48a519c85df;p=dak.git daklib/archive.py: change permissions for copied .changes and byhand files --- diff --git a/daklib/archive.py b/daklib/archive.py index 677d783c..0f3a316e 100644 --- a/daklib/archive.py +++ b/daklib/archive.py @@ -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