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:
Faik Uygur
2010-01-20 07:44:52 +00:00
parent 8f5aa7e6ab
commit 4539137d6a
+1 -1
View File
@@ -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: