Fix a clear typo in the way local repositories are handled. The
path to the package returned by getPackage() is "repo" and it
is this that should be copied to /var/cache/pungi

Signed-off-by: Mark McLoughlin <markmc@redhat.com>

Index: pungi/pypungi/gather.py
===================================================================
--- pungi.orig/pypungi/gather.py
+++ pungi/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)))
@@ -461,7 +461,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)))

-- 


