diff options
author | Sam Thursfield <sam.thursfield@codethink.co.uk> | 2015-06-23 13:51:11 +0100 |
---|---|---|
committer | Sam Thursfield <sam.thursfield@codethink.co.uk> | 2015-06-23 14:55:27 +0000 |
commit | 4546ce397efba587d2cb7b53b928181b769f7cc8 (patch) | |
tree | 96d0bebb4db39e0ddce4c7c29023fe6bd8eeedba /morphlib | |
parent | ebaa5335302e0275a549bacfb698737ce9132abc (diff) | |
download | morph-4546ce397efba587d2cb7b53b928181b769f7cc8.tar.gz |
Fix crash in `morph distbuild` command
This was causing:
UnboundLocalError: local variable 'original_ref' referenced before assignment
Change-Id: I46e4b5d527d9ac5480a3d1fe5e6d631f0b7279dc
Diffstat (limited to 'morphlib')
-rw-r--r-- | morphlib/plugins/build_plugin.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/morphlib/plugins/build_plugin.py b/morphlib/plugins/build_plugin.py index 0e695691..226a2c85 100644 --- a/morphlib/plugins/build_plugin.py +++ b/morphlib/plugins/build_plugin.py @@ -140,7 +140,7 @@ class BuildPlugin(cliapp.Plugin): ref = definitions_repo.HEAD commit = definitions_repo.resolve_ref_to_commit(ref) self._distbuild(definitions_repo.remote_url, commit, filename, - original_ref=original_ref, + original_ref=ref, component_names=component_names) def distbuild_start(self, args): |