When the last dependency package of <AnyDependency> is removed. the reverse dep should also be removed. This was
working, but missed the attributes part.. So it was working for the Dependency tag without attributes like versionFrom, versionTo, ...
This commit is contained in:
@@ -212,7 +212,7 @@ class InstallDB(lazydb.LazyDB):
|
||||
def __create_dependency(self, depStr):
|
||||
if "<AnyDependency>" in depStr:
|
||||
anydependency = pisi.specfile.AnyDependency()
|
||||
for dep in re.compile('(<Dependency>.*?</Dependency>)').findall(depStr):
|
||||
for dep in re.compile('(<Dependency .*?>.*?</Dependency>)').findall(depStr):
|
||||
anydependency.dependencies.append(self.__make_dependency(dep))
|
||||
return anydependency
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user