diff carton.py @ 14:c474362cf69a

allow fetching of remote tarballs
author Jeff Hammel <jhammel@mozilla.com>
date Fri, 08 Jul 2011 15:23:04 -0700
parents f522620c6a78
children f05e636b7444
line wrap: on
line diff
--- a/carton.py	Fri Jul 08 15:20:01 2011 -0700
+++ b/carton.py	Fri Jul 08 15:23:04 2011 -0700
@@ -140,8 +140,8 @@
         buffer = None
 
         if isURL(source):
-            # remote tarball
-            raise NotImplementedError
+            # remote tarball or resource
+            buffer = urllib2.urlopen(source).read()
         else:
             assert os.path.exists(source), "%s does not exist" % source