From bc4b270acb747f60bf5976ada3272e35a0d938ee Mon Sep 17 00:00:00 2001 From: Ansgar Burchardt Date: Wed, 2 Jan 2013 17:01:07 +0100 Subject: [PATCH] daklib/archive.py: always copy files instead of using symlinks Some files in pool locations might not be accessible to the user dak runs lintian as. So always copy the files and set appropriate permissions. Bug: http://bugs.debian.org/689598 --- daklib/archive.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/daklib/archive.py b/daklib/archive.py index e2b3a17a..bb9b051a 100644 --- a/daklib/archive.py +++ b/daklib/archive.py @@ -667,7 +667,7 @@ class ArchiveUpload(object): try: db_file = self.transaction.get_file(f, source.dsc['Source'], check_hashes=False) db_archive_file = session.query(ArchiveFile).filter_by(file=db_file).first() - fs.copy(db_archive_file.path, dst, symlink=True) + fs.copy(db_archive_file.path, dst, mode=0o640) except KeyError: # Ignore if get_file could not find it. Upload will # probably be rejected later. -- 2.39.5