From 971e87177165e2c363dd42051266213493518711 Mon Sep 17 00:00:00 2001 From: Faik Uygur Date: Thu, 9 Nov 2006 12:59:09 +0000 Subject: [PATCH] * add also source components to component tree. there is some work to here for emerging components. --- pisi/component.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pisi/component.py b/pisi/component.py index f113d9ab..03a0f389 100644 --- a/pisi/component.py +++ b/pisi/component.py @@ -170,9 +170,10 @@ class ComponentDB(object): def update_component(self, component, repo, txn = None): def proc(txn): if self.has_component(component.name, repo, txn): - # preserve list of packages and dependencies + # preserve list of sources, packages and dependencies current = self.d.get_item(component.name, repo, txn) component.packages = current.packages + component.sources = current.sources component.dependencies = current.dependencies self.d.add_item(component.name, component, repo, txn) self.add_child(component, repo, txn) @@ -214,6 +215,7 @@ class ComponentDB(object): if not spec in component.sources: component.sources.append(spec) self.d.add_item(component_name, component, repo, txn) # update + self.add_child(component, repo, txn) self.d.txn_proc(proc, txn) def remove_spec(self, component_name, spec, repo = None, txn = None):