# HG changeset patch # User Jeff Hammel # Date 1333402073 25200 # Node ID 213cf933366dbe0193205e5f4b06a6c2d842dd61 # Parent bb3c646e951637bd2a2e24c726e623cd4f4fa488 stupid mistakes diff -r bb3c646e9516 -r 213cf933366d paint/package.py --- 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)