dnfbase = dnf.base.Base()
pkg = list(dnfbase.sack.query())
dnfbase_copy = copy.deepcopy(dnfbase)
pkg = list(dnfbase_copy.sack.query())
no segfault, package gets excluded as expected
Hi Dan, thanks for the report. I think nobody has tested deepcopy on the sack, so this might be a problem. We'll take a look but have to give it a low prio for now.
Now attemp to do deepcopy on sack rises NotImplementedError. Copying libsolv handler is complicated and duplicating sacks is not good design pattern in code. The same could be achieved by queries with less memory consumption. If you wanna speed up query filters, feel free to open new issue tagged with "[perf]".
dnf-plugins-core-0.1.1-2.fc20, dnf-0.5.3-1.fc20, hawkey-0.4.17-1.fc20 has been submitted as an update for Fedora 20.
Package dnf-plugins-core-0.1.1-2.fc20, dnf-0.5.3-1.fc20, hawkey-0.4.17-1.fc20:
* should fix your issue,
* was pushed to the Fedora 20 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing dnf-plugins-core-0.1.1-2.fc20 dnf-0.5.3-1.fc20 hawkey-0.4.17-1.fc20'
as soon as you are able to.
Please go to the following url:
then log in and leave karma (feedback).
dnf-plugins-core-0.1.1-2.fc20, dnf-0.5.3-1.fc20, hawkey-0.4.17-1.fc20 has been pushed to the Fedora 20 stable repository. If problems still persist, please make note of it in this bug report.