forked from importers/git-importer
Import all projects before checking files - otherwise we end with 0s
This commit is contained in:
parent
d961c13614
commit
9dbf3b9094
@ -159,7 +159,7 @@ class Importer:
|
||||
rev = DBRevision(row)
|
||||
linked_rev = rev.linked_rev(db)
|
||||
if not linked_rev:
|
||||
logging.debug("No link", rev)
|
||||
logging.debug(f"No link {rev}")
|
||||
continue
|
||||
cur.execute(
|
||||
"""INSERT INTO linked_revs (revision_id, linked_id)
|
||||
@ -301,6 +301,7 @@ class Importer:
|
||||
for number in DBRevision.requests_to_fetch(db, project, self.package):
|
||||
self.obs.request(number).import_into_db(db)
|
||||
|
||||
self.calculate_file_hashes(db)
|
||||
db.conn.commit()
|
||||
TreeBuilder(db).build(self.package)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user