]> git.siccegge.de Git - forks/vmdebootstrap.git/commitdiff
Ensure wheezy amd64 warning is only used with uefi
authorNeil Williams <codehelp@debian.org>
Sun, 13 Sep 2015 10:06:12 +0000 (11:06 +0100)
committerNeil Williams <codehelp@debian.org>
Sun, 13 Sep 2015 10:10:25 +0000 (11:10 +0100)
Closes: #798225
vmdebootstrap

index 78f098270b77050e19f36cd382df633036e67949..138d8a61bc26b39fb533ab241daa56fbe44f38b8 100755 (executable)
@@ -263,7 +263,7 @@ class VmDebootstrap(cliapp.Application):  # pylint: disable=too-many-public-meth
 
         # wheezy (which became oldstable on 04/25/2015) only had amd64 uefi
         if self.was_oldstable(datetime.date(2015, 4, 26)):
-            if self.settings['arch'] != 'amd64':
+            if self.settings['use-uefi'] and self.settings['arch'] != 'amd64':
                 raise cliapp.AppException(
                     'Only amd64 supports UEFI in Wheezy')