From 0d888052c4a855aaf376cddc8b197af1a67d7eec Mon Sep 17 00:00:00 2001 From: Jesse Keating Date: Tue, 11 Sep 2007 18:18:46 -0400 Subject: [PATCH] Fix a bug with file:// repos. --- Changelog | 1 + pypungi/gather.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Changelog b/Changelog index 15844a51..c399fd08 100644 --- a/Changelog +++ b/Changelog @@ -1,6 +1,7 @@ * Tue Sep 11 2007 Jesse Keating - Fix a bug with default dest dir (notting) - Include a man page (dcantrell) +- Fix a bug with file:// based repos * Thu Aug 30 2007 Jesse Keating - Fix some bugs with source iso creation diff --git a/pypungi/gather.py b/pypungi/gather.py index c14391e3..ab4a52b5 100755 --- a/pypungi/gather.py +++ b/pypungi/gather.py @@ -343,7 +343,7 @@ class Gather(pypungi.PungiBase): # do a little dance for file:// repos... path = repo.getPackage(pkg) if not os.path.exists(local) or not os.path.samefile(path, local): - shutil.copy2(local, path) + shutil.copy2(path, local) try: os.link(local, os.path.join(pkgdir, os.path.basename(remote)))