From 0d888052c4a855aaf376cddc8b197af1a67d7eec Mon Sep 17 00:00:00 2001 From: Jesse Keating Date: Sep 11 2007 22:18:46 +0000 Subject: Fix a bug with file:// repos. --- diff --git a/Changelog b/Changelog index 15844a5..c399fd0 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 c14391e..ab4a52b 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)))