Hide Forgot
If multiple packages are added to sack, hawkey sets location to None. Reproducer: d = dnf.base.Base(...) d.fill_sack(load_system_repo=False, load_available_repos=False) pkg = d.add_remote_rpm(<path>) print pkg.location > /path/to/rpm pkg = d.add_remote_rpm(<path>) print pkg.location > None Version: python-hawkey-0.6.3-1.git.0.08f4354.fc23.x86_64 libsolv-0.6.20-1.fc23.x86_64 python2-dnf-1.1.8-1.git.0.3c4b0a3.fc23.noarch
This also affects accessing pkg.header: print pkg.header Traceback (most recent call last): ... File "/usr/lib/python2.7/site-packages/dnf/package.py", line 78, in header return dnf.rpm.header(self.localPkg()) File "/usr/lib/python2.7/site-packages/dnf/rpm/__init__.py", line 56, in header with open(path) as package: TypeError: coercing to Unicode: need string or buffer, NoneType found
we'll take a look
Fixed in https://github.com/rpm-software-management/libhif/pull/115/commits
This package has changed ownership in the Fedora Package Database. Reassigning to the new owner of this component.
This bug appears to have been reported against 'rawhide' during the Fedora 25 development cycle. Changing version to '25'.
Fixed in libdnf-0.7.1-1 and released into rawhide