From: Ansgar Burchardt Date: Wed, 2 Jan 2013 16:01:07 +0000 (+0100) Subject: daklib/archive.py: always copy files instead of using symlinks X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bc4b270acb747f60bf5976ada3272e35a0d938ee;p=dak 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 --- 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.