]> git.decadent.org.uk Git - dak.git/commitdiff
Use HashedFile.input_filename
authorAnsgar Burchardt <ansgar@debian.org>
Fri, 14 Aug 2015 09:37:28 +0000 (11:37 +0200)
committerAnsgar Burchardt <ansgar@debian.org>
Fri, 14 Aug 2015 11:04:21 +0000 (13:04 +0200)
Use the input_filename that was introduced in
64292a3e28c69cb7a816830c858f8503d6995a98

daklib/archive.py

index 9f38d4437ea9048a4e89f443ae6cdbdad6a0ebcb..b77bfa0bc076c1a2bfe80f566763736040783217 100644 (file)
@@ -318,7 +318,7 @@ class ArchiveTransaction(object):
         ### Now add remaining files and copy them to the archive.
 
         for hashed_file in source.files.itervalues():
-            hashed_file_path = os.path.join(directory, hashed_file.filename)
+            hashed_file_path = os.path.join(directory, hashed_file.input_filename)
             if os.path.exists(hashed_file_path):
                 db_file = self._install_file(directory, hashed_file, archive, component, source_name)
                 session.add(db_file)