[Rpm-maint] [rpm-software-management/rpm] scripts/pythondistdeps: Only print rich dep list when required to. (#982)
Igor Gnatenko
notifications at github.com
Fri Dec 20 20:00:49 UTC 2019
ignatenkobrain commented on this pull request.
> @@ -269,7 +269,10 @@
spec_list.append('{n} >= {v} with {n} < {vnext}'.format(n=name, v=spec[1], vnext=next_ver))
else:
spec_list.append('{} {} {}'.format(name, spec[0], spec[1]))
- print('(%s)' % ' with '.join(spec_list))
+ if len(spec_list) == 1:
+ print(spec_list[0])
+ else:
+ print('(%s)' % ' with '.join(spec_list))
can we keep same style of code?
```
print('({})'.format(' with '.join(spec_list)))
```
?
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/pull/982#pullrequestreview-335492744
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20191220/c1057363/attachment-0001.html>
More information about the Rpm-maint
mailing list