From 3c632697bd604933d3284acdc79eb3178ddd77ef Mon Sep 17 00:00:00 2001 From: Olivier Blin Date: Wed, 27 Sep 2006 13:45:38 +0000 Subject: merge 1.6.2b changes --- RepSys/rpmutil.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'RepSys/rpmutil.py') diff --git a/RepSys/rpmutil.py b/RepSys/rpmutil.py index 83d0051..9c0018a 100644 --- a/RepSys/rpmutil.py +++ b/RepSys/rpmutil.py @@ -90,9 +90,13 @@ 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) execcmd("cp -f", srpm, targetdir) os.unlink(srpm) + return targetsrpms finally: if os.path.isdir(tmpdir): shutil.rmtree(tmpdir) -- cgit v1.2.1