@torsava commented on this pull request.


> -                                print('Conflicts:\t{} {} {}'.format(dep.key, 
> '==', spec[1]))
+                    for dep in dist.requirements_for_extra(extra):
+                        for spec in dep.specifier:
+                            if spec.operator == '!=':
+                                print('Conflicts:\t{} {} {}'.format(dep.name, 
'==', spec.version))
                             else:
-                                print('Requires:\t{} {} {}'.format(dep.key, 
spec[0], spec[1]))
+                                print('Requires:\t{} {} {}'.format(dep.name, 
spec.operator, spec.version))

@s-t-e-v-e-n-k Here you still use `dep.name` as a replacement for `dep.key`, is 
there a reason?

-- 
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/1317#discussion_r493363804
_______________________________________________
Rpm-maint mailing list
Rpm-maint@lists.rpm.org
http://lists.rpm.org/mailman/listinfo/rpm-maint

Reply via email to