avoid traceback when name is None
This commit is contained in:
parent
5d928ca13c
commit
c871f488eb
1 changed files with 3 additions and 2 deletions
|
@ -385,8 +385,9 @@ def main():
|
|||
if extra_args:
|
||||
cmd += ' %s' % extra_args
|
||||
|
||||
for pkg in name:
|
||||
cmd += ' %s' % _get_full_name(pkg, version)
|
||||
if pkg:
|
||||
for pkg in name:
|
||||
cmd += ' %s' % _get_full_name(pkg, version)
|
||||
else:
|
||||
if requirements:
|
||||
cmd += ' -r %s' % requirements
|
||||
|
|
Loading…
Reference in a new issue