* be smart

This commit is contained in:
Eray Özkural
2006-03-23 14:55:58 +00:00
parent 97aa48329c
commit 13bbb6cba6
+1
View File
@@ -85,6 +85,7 @@ class Index(XmlFile):
ctx.packagedb.remove_repo(repo, txn=txn) ctx.packagedb.remove_repo(repo, txn=txn)
for pkg in self.packages: for pkg in self.packages:
ctx.packagedb.add_package(pkg, repo, txn=txn) ctx.packagedb.add_package(pkg, repo, txn=txn)
ctx.sourcedb.remove_repo(repo, txn=txn)
for sf in self.specs: for sf in self.specs:
ctx.sourcedb.add_spec(sf, repo, txn=txn) ctx.sourcedb.add_spec(sf, repo, txn=txn)