[elbe-devel] [PATCH] elbeproject: set grub_fw_type when building wheezy project
Martin Kaistra
martin.kaistra at linutronix.de
Fri May 4 08:12:53 CEST 2018
The variable grub_fw_type didn't get set if the elbe project
was of type wheezy which resulted in a build failure
(github issue #156). Set grub_fw_type also in this missing case.
Command failed with errorcode 1
Build failed
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/elbepack/asyncworker.py", line 129, in execute
skip_pbuild=self.skip_pbuilder)
File "/usr/lib/python2.7/dist-packages/elbepack/elbeproject.py", line 489, in build
self.targetfs.part_target(self.builddir, grub_version, grub_fw_type)
UnboundLocalError: local variable 'grub_fw_type' referenced before assignment
Exception:
local variable 'grub_fw_type' referenced before assignment
Signed-off-by: Martin Kaistra <martin.kaistra at linutronix.de>
---
elbepack/elbeproject.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/elbepack/elbeproject.py b/elbepack/elbeproject.py
index 690a289d..f2c8fa9f 100644
--- a/elbepack/elbeproject.py
+++ b/elbepack/elbeproject.py
@@ -472,7 +472,7 @@ class ElbeProject (object):
grub_version = 199
else:
grub_version = 202
- grub_fw_type = "bios"
+ grub_fw_type = "bios"
elif self.get_rpcaptcache().is_installed('grub-efi-amd64'):
grub_version = 202
grub_fw_type = "efi"
--
2.11.0
More information about the elbe-devel
mailing list