diff options
author | Olivier Blin <oblin@mandriva.com> | 2006-10-19 12:09:59 +0000 |
---|---|---|
committer | Olivier Blin <oblin@mandriva.com> | 2006-10-19 12:09:59 +0000 |
commit | baf7e80f9b40c57aaa2977f335110445d74a4645 (patch) | |
tree | 791da3770a56ce4e8e972e7b20a5d2a11f169517 | |
parent | 3300b92537b22a187c644ea218e517aec12ffd70 (diff) | |
download | mgarepo-baf7e80f9b40c57aaa2977f335110445d74a4645.tar mgarepo-baf7e80f9b40c57aaa2977f335110445d74a4645.tar.gz mgarepo-baf7e80f9b40c57aaa2977f335110445d74a4645.tar.bz2 mgarepo-baf7e80f9b40c57aaa2977f335110445d74a4645.tar.xz mgarepo-baf7e80f9b40c57aaa2977f335110445d74a4645.zip |
make get_srpm display the extracted .src.rpm (path + filename) (initially from pixel, frontport from V1_5_X)
-rw-r--r-- | RepSys/rpmutil.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/RepSys/rpmutil.py b/RepSys/rpmutil.py index 5931ab2..26ececf 100644 --- a/RepSys/rpmutil.py +++ b/RepSys/rpmutil.py @@ -91,9 +91,14 @@ def get_srpm(pkgdirurl, srpm = glob.glob(os.path.join(srpmsdir, "*.src.rpm"))[0] if not targetdirs: targetdirs = (".",) + targetsrpms = [] 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) execcmd("cp -f", srpm, targetdir) os.unlink(srpm) + return targetsrpms finally: if os.path.isdir(tmpdir): shutil.rmtree(tmpdir) |