diff options
author | Sam Thursfield <sam.thursfield@codethink.co.uk> | 2015-06-18 16:36:12 +0000 |
---|---|---|
committer | Baserock Gerrit <gerrit@baserock.org> | 2015-06-19 09:50:09 +0000 |
commit | ec6710062a9ea139b165d2b96466e1b1b4991378 (patch) | |
tree | 44bdc37ea88d4d70921a9ba95641345e89113b0a /morphlib/plugins | |
parent | 2040cbeb01d3588686b8eab5a77867f8952828c5 (diff) | |
download | morph-ec6710062a9ea139b165d2b96466e1b1b4991378.tar.gz |
Fix `morph show-build-log` for chunks of a different architecture
Previously if you tried to view the log on an x86_32 machine for a
chunk that was build on ARM, it'd give a spurious error saying "Are you
trying to cross-build?"
Change-Id: I19c3781e0951ecb4161f06fd8b3a0c8ea5bfef9d
Diffstat (limited to 'morphlib/plugins')
-rw-r--r-- | morphlib/plugins/show_build_log_plugin.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/morphlib/plugins/show_build_log_plugin.py b/morphlib/plugins/show_build_log_plugin.py index a6bb1783..6f22036a 100644 --- a/morphlib/plugins/show_build_log_plugin.py +++ b/morphlib/plugins/show_build_log_plugin.py @@ -55,6 +55,12 @@ class ShowBuildLog(cliapp.Plugin): system = args[0] chunk = args[1] + # Hack to allow getting build log of chunks for a different + # architecture + def validate(self, root_artifact): + pass + morphlib.buildcommand.BuildCommand._validate_architecture = validate + sb = morphlib.sysbranchdir.open_from_within('.') root_repo_url = sb.get_config('branch.root') ref = sb.get_config('branch.name') |