aboutsummaryrefslogtreecommitdiffstats
path: root/RepSys/rpmutil.py
diff options
context:
space:
mode:
Diffstat (limited to 'RepSys/rpmutil.py')
-rw-r--r--RepSys/rpmutil.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/RepSys/rpmutil.py b/RepSys/rpmutil.py
index 26ececf..07b3bf3 100644
--- a/RepSys/rpmutil.py
+++ b/RepSys/rpmutil.py
@@ -37,7 +37,8 @@ def get_srpm(pkgdirurl,
svnlog = 0,
scripts = [],
submit = False,
- template = None):
+ template = None,
+ verbose = 0):
svn = SVN()
tmpdir = tempfile.mktemp()
topdir = "--define '_topdir %s'" % tmpdir
@@ -95,7 +96,8 @@ def get_srpm(pkgdirurl,
for targetdir in targetdirs:
targetsrpm = os.path.join(os.path.realpath(targetdir), os.path.basename(srpm))
targetsrpms.append(targetsrpm)
- sys.stderr.write("Wrote: %s\n" % targetsrpm)
+ if verbose:
+ sys.stderr.write("Wrote: %s\n" % targetsrpm)
execcmd("cp -f", srpm, targetdir)
os.unlink(srpm)
return targetsrpms