summaryrefslogtreecommitdiff
path: root/vmdebootstrap
diff options
context:
space:
mode:
Diffstat (limited to 'vmdebootstrap')
-rw-r--r--vmdebootstrap/codenames.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/vmdebootstrap/codenames.py b/vmdebootstrap/codenames.py
index d0f71fe..0bf46ac 100644
--- a/vmdebootstrap/codenames.py
+++ b/vmdebootstrap/codenames.py
@@ -62,9 +62,8 @@ class Codenames(Base):
def kernel_package(self):
packages = []
- if not self.settings['no-kernel']:
- if self.settings['kernel-package']:
- return packages
+ if self.settings['no-kernel'] or self.settings['kernel-package']:
+ return packages
if self.settings['arch'] == 'i386':
# wheezy (which became oldstable on 04/25/2015) used '486'
if self.was_oldstable(datetime.date(2015, 4, 26)):