changeset 47:213cf933366d

stupid mistakes
author Jeff Hammel <jhammel@mozilla.com>
date Mon, 02 Apr 2012 14:27:53 -0700
parents bb3c646e9516
children abfb267e8332
files paint/package.py
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/paint/package.py	Mon Apr 02 10:43:56 2012 -0700
+++ b/paint/package.py	Mon Apr 02 14:27:53 2012 -0700
@@ -287,10 +287,10 @@
         tempdir = tempfile.mkdtemp()
         try:
             self.download(tempdir)
-            for package in os.listdir(tempdir):
+            for f in os.listdir(tempdir):
 
                 # full path
-                src = os.path.join(tempdir, package)
+                src = os.path.join(tempdir, f)
 
                 # make a package of the thing
                 package = Package(src)
@@ -305,7 +305,7 @@
                 assert os.path.isdir(subdir)
 
                 # move the file
-                self.package(destination=os.path.join(subdir, filename))
+                package.package(destination=os.path.join(subdir, filename))
         finally:
             shutil.rmtree(tempdir)