diff paint/package.py @ 15:8c8b7482772f

fix a few failures but still failing
author Jeff Hammel <jhammel@mozilla.com>
date Fri, 24 Feb 2012 15:53:26 -0800
parents 6d27c2136163
children e6cdc58fc4f5
line wrap: on
line diff
--- a/paint/package.py	Fri Feb 24 15:50:31 2012 -0800
+++ b/paint/package.py	Fri Feb 24 15:53:26 2012 -0800
@@ -47,8 +47,8 @@
 
     def fetch(self):
         """fetch from remote source to a temporary file"""
+        resource = urllib2.urlopen(self.src)
         fd, filename = tempfile.mkstemp()
-        resource = urllib2.urlopen(self.src)
         os.write(fd, resource.read())
         os.close(fd)
         return filename
@@ -85,7 +85,7 @@
             return self._egg_info
 
         directory = self.path()
-        assert os.path.exists(os.path.join(path, 'setup.py'))
+        assert os.path.exists(os.path.join(directory, 'setup.py'))
 
         # setup the egg info
         call([sys.executable, 'setup.py', 'egg_info'], cwd=directory, stdout=PIPE)