Obsolete info from a source repo should effect the system
This commit is contained in:
@@ -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"))
|
||||||
|
|||||||
Reference in New Issue
Block a user