From 4dde536a8cc4b697852aa2e914c9fc3abf745bf7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=2E=C3=87a=C4=9Flar=20Onur?= Date: Fri, 12 Jan 2007 01:06:17 +0000 Subject: [PATCH] yeni api'yi kullan, tag ile fark alma --- scripts/repo-diff.py | 17 ++--------------- 1 file changed, 2 insertions(+), 15 deletions(-) diff --git a/scripts/repo-diff.py b/scripts/repo-diff.py index 5ef5ea8b..b40618d0 100755 --- a/scripts/repo-diff.py +++ b/scripts/repo-diff.py @@ -29,7 +29,7 @@ def getVersion(pspecList): sources = {} for pspec in pspecList: 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 def listIntersection(firstRepo, secondRepo): @@ -63,22 +63,9 @@ if __name__ == "__main__": except IndexError: postfix = "" - tag = getVersion(findPspec(join_path(svnRoot, "tags/pardus-1.0/", postfix))) - stable = getVersion(findPspec(join_path(svnRoot,"stable/pardus-1/", postfix))) + stable = getVersion(findPspec(join_path(svnRoot,"2007/", 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" listIntersection(stable, devel) print