aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBogdano Arendartchuk <bogdano@mandriva.org>2007-06-04 14:35:53 +0000
committerBogdano Arendartchuk <bogdano@mandriva.org>2007-06-04 14:35:53 +0000
commit5c221808ecb832d3419bb96002ede1a553ed7b73 (patch)
treeaa430e7186b787087080170f3ac9531d652fe570
parent25a13bb6dcacfdddd986f875e3a2ae2b8102afdb (diff)
downloadmgarepo-5c221808ecb832d3419bb96002ede1a553ed7b73.tar
mgarepo-5c221808ecb832d3419bb96002ede1a553ed7b73.tar.gz
mgarepo-5c221808ecb832d3419bb96002ede1a553ed7b73.tar.bz2
mgarepo-5c221808ecb832d3419bb96002ede1a553ed7b73.tar.xz
mgarepo-5c221808ecb832d3419bb96002ede1a553ed7b73.zip
FIXME possible bugs in get_srpm related to revision numbers.
-rw-r--r--RepSys/rpmutil.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/RepSys/rpmutil.py b/RepSys/rpmutil.py
index 37b1178..a0eb22e 100644
--- a/RepSys/rpmutil.py
+++ b/RepSys/rpmutil.py
@@ -77,8 +77,11 @@ def get_srpm(pkgdirurl,
submit = not not revision
specfile_svn2rpm(pkgdirurl, spec, revision, submit=submit,
template=template, macros=macros)
+ #FIXME revisioreal not needed if revision is None
+ #FIXME use geturl instead of pkgdirurl
revisionreal = svn.revision(pkgdirurl)
for script in scripts:
+ #FIXME revision can be "None"
status, output = execcmd(script, tmpdir, spec, str(revision),
noerror=1)
if status != 0:
@@ -92,6 +95,7 @@ def get_srpm(pkgdirurl,
srcrpmdir, patchdir, packager, spec, defs))
if revision and revisionreal:
+ #FIXME duplicate glob line
srpm = glob.glob(os.path.join(srpmsdir, "*.src.rpm"))[0]
srpminfo = SRPM(srpm)
release = srpminfo.release