From 0c62e6d9a17ca45c1709ca17d0005ecfb640fe99 Mon Sep 17 00:00:00 2001 From: Andreas Hasenack Date: Tue, 14 Nov 2006 20:58:00 +0000 Subject: - silence stderr when querying for version-release of a .src.rpm package --- RepSys/log.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- cgit v1.2.1