Build a revision tree

This commit is contained in:
Stephan Kulow
2022-10-22 12:03:21 +02:00
parent bc74b6950b
commit 089b215f4c
4 changed files with 48 additions and 21 deletions
+2 -2
View File
@@ -9,10 +9,9 @@ from lib.history import History
from lib.obs import OBS
from lib.obs_revision import OBSRevision
from lib.proxy_sha256 import ProxySHA256, md5, sha256
from lib.request import Request
import xml.etree.ElementTree as ET
from lib.user import User
from lib.tree_builder import TreeBuilder
def _files_hash(hash_alg, dirpath):
"""List of (filepath, md5) for a directory"""
@@ -185,6 +184,7 @@ class Importer:
self.obs.request(number).import_into_db(db)
db.conn.commit()
TreeBuilder(db).build(self.package)
def import_all_revisions(self, gc):
# Fetch all the requests and sort them. Ideally we should