From 3007ba5a57848807cb0b952016bc90dffdf5a6d1 Mon Sep 17 00:00:00 2001 From: dsc Date: Fri, 11 May 2012 10:09:41 -0700 Subject: [PATCH] Fixes bundling in deploy script. --- fabfile/bundle.py | 7 ++++--- 1 files changed, 4 insertions(+), 3 deletions(-) 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') -- 1.7.0.4