Description of problem: >>> len(q.filter(provides='/bin/sh')) 3 >>> len(q.filter(providess=['/bin/sh'])) Traceback (most recent call last): File "/tmp/r.py", line 12, in <module> print len(q.filter(provides=['/bin/sh','/bin/sh'])) File "/usr/lib64/python2.7/site-packages/hawkey/__init__.py", line 295, in filter return new_query.filterm(*lst, **kwargs) File "/usr/lib64/python2.7/site-packages/hawkey/__init__.py", line 301, in filterm super(Query, self).filter(*arg_tuple) TypeError: Expected a Reldep object. Version-Release number of selected component (if applicable): dnf-1.0.1-2.fc22.noarch hawkey-0.5.7-1.fc22.x86_64 How reproducible: always Steps to Reproduce: 1.cat <<EOF >/tmp/r.py import dnf b = dnf.Base() b.read_all_repos() b.fill_sack() q=b.sack.query() print len(q.filter(provides='/bin/sh')) print len(q.filter(provides=['/bin/sh'])) EOF 2. python /tmp/r.py Actual results: 3 Traceback (most recent call last): File "/tmp/r.py", line 12, in <module> print len(q.filter(provides=['/bin/sh','/bin/sh'])) File "/usr/lib64/python2.7/site-packages/hawkey/__init__.py", line 295, in filter return new_query.filterm(*lst, **kwargs) File "/usr/lib64/python2.7/site-packages/hawkey/__init__.py", line 301, in filterm super(Query, self).filter(*arg_tuple) TypeError: Expected a Reldep object. Expected results: 3 3 Additional info:
Well, it shouldn't work so far. Let's track this as an RFE.
If list in filter works for other options (arch, file, name, release, version, ...) then it's a bug not RFE.
We should either document Reldep object or do the implicit conversion from string.
https://github.com/rpm-software-management/hawkey/pull/108
hawkey-0.6.1-1.fc23 dnf-plugins-core-0.1.12-2.fc23 dnf-1.1.2-2.fc23 has been submitted as an update to Fedora 23. https://bodhi.fedoraproject.org/updates/FEDORA-2015-16428
dnf-plugins-core-0.1.12-2.fc22 hawkey-0.6.1-1.fc22 dnf-1.1.2-2.fc22 has been submitted as an update to Fedora 22. https://bodhi.fedoraproject.org/updates/FEDORA-2015-16429
dnf-1.1.2-2.fc23, dnf-plugins-core-0.1.12-2.fc23, hawkey-0.6.1-1.fc23 has been pushed to the Fedora 23 testing repository. If problems still persist, please make note of it in this bug report. If you want to test the update, you can install it with $ su -c 'dnf --enablerepo=updates-testing update dnf-plugins-core dnf hawkey' You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2015-16428
dnf-1.1.2-2.fc22, dnf-plugins-core-0.1.12-2.fc22, hawkey-0.6.1-1.fc22 has been pushed to the Fedora 22 testing repository. If problems still persist, please make note of it in this bug report. If you want to test the update, you can install it with $ su -c 'dnf --enablerepo=updates-testing update dnf-plugins-core dnf hawkey' You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2015-16429
dnf-plugins-core-0.1.12-3.fc23 hawkey-0.6.1-2.fc23 dnf-1.1.2-4.fc23 has been submitted as an update to Fedora 23. https://bodhi.fedoraproject.org/updates/FEDORA-2015-38e69423f3
dnf-plugins-core-0.1.12-3.fc22 hawkey-0.6.1-2.fc22 dnf-1.1.2-4.fc22 has been submitted as an update to Fedora 22. https://bodhi.fedoraproject.org/updates/FEDORA-2015-3528c659e4
dnf-1.1.2-4.fc22, dnf-plugins-core-0.1.12-3.fc22, hawkey-0.6.1-2.fc22 has been pushed to the Fedora 22 testing repository. If problems still persist, please make note of it in this bug report. If you want to test the update, you can install it with $ su -c 'dnf --enablerepo=updates-testing update hawkey dnf-plugins-core dnf' You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2015-3528c659e4
dnf-1.1.2-4.fc23, dnf-plugins-core-0.1.12-3.fc23, hawkey-0.6.1-2.fc23 has been pushed to the Fedora 23 testing repository. If problems still persist, please make note of it in this bug report. If you want to test the update, you can install it with $ su -c 'dnf --enablerepo=updates-testing update hawkey dnf-plugins-core dnf' You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2015-38e69423f3
dnf-1.1.2-4.fc23, dnf-plugins-core-0.1.12-3.fc23, hawkey-0.6.1-2.fc23 has been pushed to the Fedora 23 stable repository. If problems still persist, please make note of it in this bug report.
dnf-1.1.2-4.fc22, dnf-plugins-core-0.1.12-3.fc22, hawkey-0.6.1-2.fc22 has been pushed to the Fedora 22 stable repository. If problems still persist, please make note of it in this bug report.