mirror of
https://github.com/erkin/ponysay.git
synced 2024-11-22 04:27:58 +01:00
fix setup for version consistency check
Signed-off-by: Mattias Andrée <maandree@operamail.com>
This commit is contained in:
parent
3aded082c2
commit
29718d94a9
1 changed files with 9 additions and 8 deletions
17
setup.py
17
setup.py
|
@ -262,14 +262,15 @@ class Setup():
|
||||||
elif opts.opts['--freedom'][0].lower() in ('partial', 'sloppy', 'false', 'no'):
|
elif opts.opts['--freedom'][0].lower() in ('partial', 'sloppy', 'false', 'no'):
|
||||||
self.free = False
|
self.free = False
|
||||||
if self.free is None:
|
if self.free is None:
|
||||||
print('')
|
if (opts.opts['--version'] is None) and ((len(opts.files) != 1) or (opts.files[0] != 'version')):
|
||||||
print('You need to select your freedom, add --freedom=strict or --freedom=partial.')
|
print('')
|
||||||
print('')
|
print('You need to select your freedom, add --freedom=strict or --freedom=partial.')
|
||||||
print('--freedom=strict will install only ponies that are completely free.')
|
print('')
|
||||||
print('--freedom=partial will install all ponies, even if they are not free.')
|
print('--freedom=strict will install only ponies that are completely free.')
|
||||||
print('')
|
print('--freedom=partial will install all ponies, even if they are not free.')
|
||||||
print('')
|
print('')
|
||||||
exit(255)
|
print('')
|
||||||
|
exit(255)
|
||||||
|
|
||||||
|
|
||||||
if (opts.opts['---DESTDIR'] is not None) and (opts.opts['--dest-dir'] is None):
|
if (opts.opts['---DESTDIR'] is not None) and (opts.opts['--dest-dir'] is None):
|
||||||
|
|
Loading…
Reference in a new issue