Obsolete info from a source repo should effect the system

This commit is contained in:
Faik Uygur
2008-02-12 08:52:55 +00:00
parent d009a2fdad
commit 6b8f02617c
+3 -2
View File
@@ -60,8 +60,9 @@ class PackageDB(lazydb.LazyDB):
def __generate_obsoletes(self, doc): def __generate_obsoletes(self, doc):
distribution = doc.getTag("Distribution") distribution = doc.getTag("Distribution")
obsoletes = distribution and distribution.getTag("Obsoletes") obsoletes = distribution and distribution.getTag("Obsoletes")
src_repo = doc.getTag("SpecFile") is not None
if not obsoletes:
if not obsoletes or src_repo:
return [] return []
return map(lambda x: x.firstChild().data(), obsoletes.tags("Package")) return map(lambda x: x.firstChild().data(), obsoletes.tags("Package"))