aboutsummaryrefslogtreecommitdiffstats
path: root/RepSys
diff options
context:
space:
mode:
authorAndreas Hasenack <andreas@mandriva.com>2006-11-14 20:58:00 +0000
committerAndreas Hasenack <andreas@mandriva.com>2006-11-14 20:58:00 +0000
commit0c62e6d9a17ca45c1709ca17d0005ecfb640fe99 (patch)
treeb3485e14dc7eb883c5536b986d0185e8d66ca042 /RepSys
parenta5ae5fc7033a0d13d999713620a2816b5aa3bc21 (diff)
downloadmgarepo-0c62e6d9a17ca45c1709ca17d0005ecfb640fe99.tar
mgarepo-0c62e6d9a17ca45c1709ca17d0005ecfb640fe99.tar.gz
mgarepo-0c62e6d9a17ca45c1709ca17d0005ecfb640fe99.tar.bz2
mgarepo-0c62e6d9a17ca45c1709ca17d0005ecfb640fe99.tar.xz
mgarepo-0c62e6d9a17ca45c1709ca17d0005ecfb640fe99.zip
- silence stderr when querying for version-release of a .src.rpm package
Diffstat (limited to 'RepSys')
-rw-r--r--RepSys/log.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/RepSys/log.py b/RepSys/log.py
index 25c54de..d1e2a59 100644
--- a/RepSys/log.py
+++ b/RepSys/log.py
@@ -61,7 +61,7 @@ def getrelease(pkgdirurl, rev=None):
if found:
specpath = found[0]
command = (("rpm -q --qf '%%{VERSION}-%%{RELEASE}\n' "
- "--specfile %s") % specpath)
+ "--specfile %s 2>/dev/null") % specpath)
status, output = execcmd(command)
if status != 0:
raise Error, "Error in command %s: %s" % (command, output)