No need in removed_sources

This commit is contained in:
Denis Silakov 2019-06-02 03:49:26 +03:00
parent 6a638cbb00
commit 3ec54d0e67

View file

@ -583,9 +583,6 @@ def upload_files(models, min_size, path=None, remove_files=True, upload_all=Fals
to_remove.append(item)
for item in to_remove:
h = yaml_files.pop(item)
if 'removed_sources' not in yaml_data:
yaml_data['removed_sources'] = {}
yaml_data['removed_sources'][item] = h
log.info(_('Removing %(item)s:%(hash)s from .abf.yml') % {'item': item, 'hash': h })
yaml_files[src] = sha_hash.encode()
yaml_file_changed = True