forked from importers/git-importer
Build a revision tree
This commit is contained in:
+2
-2
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user