aboutsummaryrefslogtreecommitdiffstats
path: root/RepSys
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.com>2006-11-13 18:06:25 +0000
committerOlivier Blin <oblin@mandriva.com>2006-11-13 18:06:25 +0000
commitddfe1eae14c0a6bebe9343c3ea8aa890e056fec2 (patch)
tree1e01fc46c00a6758162ca0f9d154a0f86fe28365 /RepSys
parentf6c282e106b441f26535f1a621d906a4c9aa861d (diff)
downloadmgarepo-ddfe1eae14c0a6bebe9343c3ea8aa890e056fec2.tar
mgarepo-ddfe1eae14c0a6bebe9343c3ea8aa890e056fec2.tar.gz
mgarepo-ddfe1eae14c0a6bebe9343c3ea8aa890e056fec2.tar.bz2
mgarepo-ddfe1eae14c0a6bebe9343c3ea8aa890e056fec2.tar.xz
mgarepo-ddfe1eae14c0a6bebe9343c3ea8aa890e056fec2.zip
merge with 1.6 branch (commits 83373 and 83726)
Diffstat (limited to 'RepSys')
-rw-r--r--RepSys/commands/getsrpm.py1
-rw-r--r--RepSys/rpmutil.py6
2 files changed, 5 insertions, 2 deletions
diff --git a/RepSys/commands/getsrpm.py b/RepSys/commands/getsrpm.py
index a212b52..d76aca7 100644
--- a/RepSys/commands/getsrpm.py
+++ b/RepSys/commands/getsrpm.py
@@ -74,6 +74,7 @@ def parse_options():
if len(args) != 1:
raise Error, "invalid arguments"
opts.pkgdirurl = default_parent(args[0])
+ opts.verbose = 1
return opts
def main():
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