mirror of
https://github.com/erkin/ponysay.git
synced 2024-11-25 13:57:59 +01:00
setup.py: checkFreedom() should not need to check whether commands have been given on the command line.
This commit is contained in:
parent
4415291c0c
commit
e5c650349b
1 changed files with 9 additions and 10 deletions
9
setup.py
9
setup.py
|
@ -240,14 +240,13 @@ class Setup():
|
||||||
self.free = False
|
self.free = False
|
||||||
def checkFreedom():
|
def checkFreedom():
|
||||||
if self.free is None:
|
if self.free is None:
|
||||||
if (opts.opts['--version'] is None) and ((len(opts.files) != 1) or (opts.files[0] != 'version')):
|
print()
|
||||||
print('')
|
|
||||||
print('You need to select your freedom, add --freedom=strict or --freedom=partial.')
|
print('You need to select your freedom, add --freedom=strict or --freedom=partial.')
|
||||||
print('')
|
print()
|
||||||
print('--freedom=strict will install only ponies that are completely free.')
|
print('--freedom=strict will install only ponies that are completely free.')
|
||||||
print('--freedom=partial will install all ponies, even if they are not free.')
|
print('--freedom=partial will install all ponies, even if they are not free.')
|
||||||
print('')
|
print()
|
||||||
print('')
|
print()
|
||||||
exit(255)
|
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