Fix a bug with file:// repos.

This commit is contained in:
Jesse Keating 2007-09-11 18:18:46 -04:00 committed by Jesse Keating
parent e7779582c3
commit 0d888052c4
2 changed files with 2 additions and 1 deletions

View File

@ -1,6 +1,7 @@
* Tue Sep 11 2007 Jesse Keating <jkeating@redhat.com> * Tue Sep 11 2007 Jesse Keating <jkeating@redhat.com>
- Fix a bug with default dest dir (notting) - Fix a bug with default dest dir (notting)
- Include a man page (dcantrell) - Include a man page (dcantrell)
- Fix a bug with file:// based repos
* Thu Aug 30 2007 Jesse Keating <jkeating@redhat.com> * Thu Aug 30 2007 Jesse Keating <jkeating@redhat.com>
- Fix some bugs with source iso creation - Fix some bugs with source iso creation

View File

@ -343,7 +343,7 @@ class Gather(pypungi.PungiBase):
# do a little dance for file:// repos... # do a little dance for file:// repos...
path = repo.getPackage(pkg) path = repo.getPackage(pkg)
if not os.path.exists(local) or not os.path.samefile(path, local): if not os.path.exists(local) or not os.path.samefile(path, local):
shutil.copy2(local, path) shutil.copy2(path, local)
try: try:
os.link(local, os.path.join(pkgdir, os.path.basename(remote))) os.link(local, os.path.join(pkgdir, os.path.basename(remote)))