summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorNeil Williams <codehelp@debian.org>2015-12-20 10:46:41 +0000
committerNeil Williams <codehelp@debian.org>2015-12-20 10:46:41 +0000
commit0dfb97b1d88509244d3844ca5a693c8141d55bd8 (patch)
tree01388479e99a88268f0c683d12eeec6cb0d5bfb7 /bin
parent2889b066f2f0bfa390a40b58862e5bb9fbeb9299 (diff)
downloadvmdebootstrap-0dfb97b1d88509244d3844ca5a693c8141d55bd8.tar.gz
apt-mirror requires configure-apt
Diffstat (limited to 'bin')
-rwxr-xr-xbin/vmdebootstrap3
1 files changed, 3 insertions, 0 deletions
diff --git a/bin/vmdebootstrap b/bin/vmdebootstrap
index 9555331..a986a6e 100755
--- a/bin/vmdebootstrap
+++ b/bin/vmdebootstrap
@@ -213,6 +213,9 @@ class VmDebootstrap(cliapp.Application): # pylint: disable=too-many-public-meth
raise cliapp.AppException(
'%s is not a valid Debian or Ubuntu suite or codename.'
% self.settings['distribution'])
+ if self.settings['apt-mirror'] and not self.settings['configure-apt']:
+ raise cliapp.AppException(
+ '--apt-mirror requires --configure-apt as well.')
uefi = self.handlers[Uefi.name]
oldstable = distro.was_oldstable(datetime.date(2015, 4, 26))
uefi.check_settings(oldstable=oldstable)