From: dsc Date: Fri, 11 May 2012 17:09:41 +0000 (-0700) Subject: Fixes bundling in deploy script. X-Git-Url: http://git.less.ly:3516/?a=commitdiff_plain;h=3007ba5a57848807cb0b952016bc90dffdf5a6d1;p=limn-bak.git Fixes bundling in deploy script. --- diff --git a/fabfile/bundle.py b/fabfile/bundle.py index 46abdae..0884c7f 100644 --- a/fabfile/bundle.py +++ b/fabfile/bundle.py @@ -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')