fix setup for version consistency check

Signed-off-by: Mattias Andrée <maandree@operamail.com>
This commit is contained in:
Mattias Andrée 2013-04-04 01:48:05 +02:00
parent 3aded082c2
commit 29718d94a9

View file

@ -262,6 +262,7 @@ class Setup():
elif opts.opts['--freedom'][0].lower() in ('partial', 'sloppy', 'false', 'no'):
self.free = False
if self.free is None:
if (opts.opts['--version'] is None) and ((len(opts.files) != 1) or (opts.files[0] != 'version')):
print('')
print('You need to select your freedom, add --freedom=strict or --freedom=partial.')
print('')