### Now add remaining files and copy them to the archive.
for hashed_file in source.files.itervalues():
### Now add remaining files and copy them to the archive.
for hashed_file in source.files.itervalues():
if os.path.exists(hashed_file_path):
db_file = self._install_file(directory, hashed_file, archive, component, source_name)
session.add(db_file)
if os.path.exists(hashed_file_path):
db_file = self._install_file(directory, hashed_file, archive, component, source_name)
session.add(db_file)