diff options
author | Olivier Blin <oblin@mandriva.com> | 2006-09-27 13:45:38 +0000 |
---|---|---|
committer | Olivier Blin <oblin@mandriva.com> | 2006-09-27 13:45:38 +0000 |
commit | 3c632697bd604933d3284acdc79eb3178ddd77ef (patch) | |
tree | bb4d29e4d63ce2e876fdf2244ca238edd3b05533 /RepSys/rpmutil.py | |
parent | c9cddb1f54760c5c3aabfd1b637ca07fa89bc91a (diff) | |
download | mgarepo-3c632697bd604933d3284acdc79eb3178ddd77ef.tar mgarepo-3c632697bd604933d3284acdc79eb3178ddd77ef.tar.gz mgarepo-3c632697bd604933d3284acdc79eb3178ddd77ef.tar.bz2 mgarepo-3c632697bd604933d3284acdc79eb3178ddd77ef.tar.xz mgarepo-3c632697bd604933d3284acdc79eb3178ddd77ef.zip |
merge 1.6.2b changes
Diffstat (limited to 'RepSys/rpmutil.py')
-rw-r--r-- | RepSys/rpmutil.py | 4 |
1 files changed, 4 insertions, 0 deletions
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) |