From baf7e80f9b40c57aaa2977f335110445d74a4645 Mon Sep 17 00:00:00 2001 From: Olivier Blin Date: Thu, 19 Oct 2006 12:09:59 +0000 Subject: make get_srpm display the extracted .src.rpm (path + filename) (initially from pixel, frontport from V1_5_X) --- RepSys/rpmutil.py | 5 +++++ 1 file changed, 5 insertions(+) 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) -- cgit v1.2.1