From ec6710062a9ea139b165d2b96466e1b1b4991378 Mon Sep 17 00:00:00 2001 From: Sam Thursfield Date: Thu, 18 Jun 2015 16:36:12 +0000 Subject: 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 --- morphlib/plugins/show_build_log_plugin.py | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'morphlib/plugins') 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') -- cgit v1.2.1