Typo.
authorCarl Hetherington <cth@carlh.net>
Mon, 22 Apr 2013 11:27:07 +0000 (12:27 +0100)
committerCarl Hetherington <cth@carlh.net>
Mon, 22 Apr 2013 11:27:07 +0000 (12:27 +0100)
cdist

diff --git a/cdist b/cdist
index dbc03e3d4689e795c7b96f8500416b0e863353b2..545cae1f8f08766e18e49671251578624a34217e 100755 (executable)
--- a/cdist
+++ b/cdist
@@ -420,10 +420,10 @@ elif args.command == 'package':
         except:
             pass
         for p in packages:
-            copyfile(r, '%s/%s' % (out, os.path.basename(p)))
+            copyfile(p, '%s/%s' % (out, os.path.basename(p)))
     else:
         for p in packages:
-            copyfile(r, '%s/%s' % (args.output, os.path.basename(p)))
+            copyfile(p, '%s/%s' % (args.output, os.path.basename(p)))
 
     env.cleanup()