]> git.decadent.org.uk Git - dak.git/commitdiff
daklib/archive.py: always copy files instead of using symlinks
authorAnsgar Burchardt <ansgar@debian.org>
Wed, 2 Jan 2013 16:01:07 +0000 (17:01 +0100)
committerAnsgar Burchardt <ansgar@debian.org>
Wed, 2 Jan 2013 16:03:34 +0000 (17:03 +0100)
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

index e2b3a17a5ccf10c6e69d1492d760c6480dab1976..bb9b051a3f05077d734237192fd21bb2945ccddb 100644 (file)
@@ -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.