Changeset View
Changeset View
Standalone View
Standalone View
swh/loader/package/loader.py
Show First 20 Lines • Show All 325 Lines • ▼ Show 20 Lines | def load(self) -> Dict: | ||||
objects.get('directory', {}).values()) | objects.get('directory', {}).values()) | ||||
logger.debug('Number of directories: %s', | logger.debug('Number of directories: %s', | ||||
len(directories)) | len(directories)) | ||||
self.storage.directory_add(directories) | self.storage.directory_add(directories) | ||||
# FIXME: This should be release. cf. D409 | # FIXME: This should be release. cf. D409 | ||||
revision = self.build_revision( | revision = self.build_revision( | ||||
p_info['raw'], uncompressed_path) | p_info['raw'], uncompressed_path) | ||||
if not revision: | |||||
# Some artifacts are missing intrinsic metadata | |||||
# skipping those | |||||
continue | |||||
revision.update({ | revision.update({ | ||||
'synthetic': True, | 'synthetic': True, | ||||
'directory': directory.hash, | 'directory': directory.hash, | ||||
}) | }) | ||||
revision['metadata'].update({ | revision['metadata'].update({ | ||||
'original_artifact': [ | 'original_artifact': [ | ||||
hashes for _, hashes in dl_artifacts | hashes for _, hashes in dl_artifacts | ||||
▲ Show 20 Lines • Show All 60 Lines • Show Last 20 Lines |