diff options
author | Frederic Lepied <flepied@mandriva.com> | 2005-12-07 10:16:27 +0000 |
---|---|---|
committer | Frederic Lepied <flepied@mandriva.com> | 2005-12-07 10:16:27 +0000 |
commit | b78f49330af66b0698b8f901477d3a4587d3ed5e (patch) | |
tree | 2121138c5b71e3ece183a818d3431fee9c63dae7 /RepSys/rpmutil.py | |
parent | 231977ad4fefc498a1ed7061e2c1db74caa4392e (diff) | |
download | mgarepo-b78f49330af66b0698b8f901477d3a4587d3ed5e.tar mgarepo-b78f49330af66b0698b8f901477d3a4587d3ed5e.tar.gz mgarepo-b78f49330af66b0698b8f901477d3a4587d3ed5e.tar.bz2 mgarepo-b78f49330af66b0698b8f901477d3a4587d3ed5e.tar.xz mgarepo-b78f49330af66b0698b8f901477d3a4587d3ed5e.zip |
get_srpm: fixed a test
Diffstat (limited to 'RepSys/rpmutil.py')
-rw-r--r-- | RepSys/rpmutil.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/RepSys/rpmutil.py b/RepSys/rpmutil.py index 3df9818..7b6446f 100644 --- a/RepSys/rpmutil.py +++ b/RepSys/rpmutil.py @@ -67,7 +67,7 @@ def get_srpm(pkgdirurl, packager = " --define 'packager %s'" % packager execcmd("rpm -bs --nodeps --define '_topdir %s'%s %s" % (tmpdir, packager, spec)) - if revname: + if revision: srpm = glob.glob(os.path.join(srpmsdir, "*.src.rpm"))[0] srpmbase = os.path.basename(srpm) os.rename(srpm, "%s/@%i:%s" % (srpmsdir, revision, srpmbase)) |