yeni api'yi kullan, tag ile fark alma
This commit is contained in:
+2
-15
@@ -29,7 +29,7 @@ def getVersion(pspecList):
|
|||||||
sources = {}
|
sources = {}
|
||||||
for pspec in pspecList:
|
for pspec in pspecList:
|
||||||
specFile = SpecFile(join_path(pspec, "pspec.xml"))
|
specFile = SpecFile(join_path(pspec, "pspec.xml"))
|
||||||
sources[specFile.source.name] = (specFile.source.version, specFile.source.release)
|
sources[specFile.source.name] = (specFile.getSourceVersion(), specFile.getSourceRelease())
|
||||||
return sources
|
return sources
|
||||||
|
|
||||||
def listIntersection(firstRepo, secondRepo):
|
def listIntersection(firstRepo, secondRepo):
|
||||||
@@ -63,22 +63,9 @@ if __name__ == "__main__":
|
|||||||
except IndexError:
|
except IndexError:
|
||||||
postfix = ""
|
postfix = ""
|
||||||
|
|
||||||
tag = getVersion(findPspec(join_path(svnRoot, "tags/pardus-1.0/", postfix)))
|
stable = getVersion(findPspec(join_path(svnRoot,"2007/", postfix)))
|
||||||
stable = getVersion(findPspec(join_path(svnRoot,"stable/pardus-1/", postfix)))
|
|
||||||
devel = getVersion(findPspec(join_path(svnRoot, "devel/", postfix)))
|
devel = getVersion(findPspec(join_path(svnRoot, "devel/", postfix)))
|
||||||
|
|
||||||
print "Tag --> Stable"
|
|
||||||
listIntersection(tag, stable)
|
|
||||||
print
|
|
||||||
|
|
||||||
print "Tag has, Stable hasn't"
|
|
||||||
listComplement(tag, stable)
|
|
||||||
print
|
|
||||||
|
|
||||||
print "Stable has, Tag hasn't"
|
|
||||||
listComplement(stable, tag)
|
|
||||||
print
|
|
||||||
|
|
||||||
print "Stable --> Devel"
|
print "Stable --> Devel"
|
||||||
listIntersection(stable, devel)
|
listIntersection(stable, devel)
|
||||||
print
|
print
|
||||||
|
|||||||
Reference in New Issue
Block a user