Fixes bundling in deploy script.
authordsc <dsc@less.ly>
Fri, 11 May 2012 17:09:41 +0000 (10:09 -0700)
committerdsc <dsc@less.ly>
Fri, 11 May 2012 17:09:41 +0000 (10:09 -0700)
fabfile/bundle.py

index 46abdae..0884c7f 100644 (file)
@@ -61,10 +61,11 @@ def bundle_vendor():
                 vendor_file = ( d/js for d in env.vendor_search_dirs if (d/js).exists() ).next()
             except StopIteration:
                 abort("Unable to locate vendor file '%s'!" % js)
+            vendor_bundle.write("\n;\n")
+            with vendor_file.open() as f:
+                vendor_bundle.write(f.read())
         
-        vendor_bundle.write("\n;\n")
-        with vendor_file.open() as f:
-            vendor_bundle.write(f.read())
+        vendor_bundle.write('\n')
 
 @task
 @msg('Building App Bundle')