diff options
-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) |