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 ac54046..ed62901 100644
--- a/RepSys/rpmutil.py
+++ b/RepSys/rpmutil.py
@@ -36,7 +36,8 @@ def get_srpm(pkgdirurl,
svnlog = 0,
scripts = [],
submit = False,
- template = None):
+ template = None,
+ verbose = 0):
svn = SVN(baseurl=pkgdirurl)
tmpdir = tempfile.mktemp()
topdir = "--define '_topdir %s'" % tmpdir
@@ -94,7 +95,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