From b8c51297d7b03115240198383f76a48a519c85df Mon Sep 17 00:00:00 2001 From: Ansgar Burchardt Date: Tue, 18 Sep 2012 20:52:34 +0200 Subject: [PATCH] daklib/archive.py: change permissions for copied .changes and byhand files --- daklib/archive.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 -- 2.39.5