Description of problem: I've been running the 1.2.x packages on my Fedora 20 x86_64 box to take advantage of the nosync option which greatly speeds up builds. Yesterday I noticed that when doing repeated builds that all packages were being downloaded every run. I have only the following customizations in site-defaults.cfg: config_opts['cleanup_on_failure'] = 0 config_opts['nosync'] = True config_opts['macros']['%_smp_mflags'] = "-j6" config_opts['package_manager'] = 'dnf' Version-Release number of selected component (if applicable): mock-1.2.1-1.fc20.noarch
Additional information: I did some digging and figured out it only happens with dnf, not yum.
Confirmed. DNF uses different path to cache and I didn't notice, beacuse I have it explicitly set. You can put cachedir=/var/cache/yum into your config_opts['yum.conf'] to make it work, but it's not a proper solution. I'll fix it.
Hmm, the cachedir option is also set in the default configs. Seems like a different problem, so ignore the previous comment.
It turns out that dnf's default is to throw away downloaded packages after successful transaction. Therefore we need to explicitly set keepcache=1 in yum.conf. I sent patch upstream that changes the default configs. For now, you can just add keepcache=1 in line into [main] section of your config_opts['yum.conf']
It looks like that has to be done per chroot config file? I think I'll wait for the fix... That does bring up a good question though, it looks like the yum config option in [main] are more or less the same for all chroots. Is there a way to pull those options into site-defaults.cfg?
(In reply to Richard Shaw from comment #5) > It looks like that has to be done per chroot config file? I think I'll wait > for the fix... > you can do something like sudo sed -i 's/^\[main\]$/&\nkeepcache=1/' /etc/mock/*.cfg > That does bring up a good question though, it looks like the yum config > option in [main] are more or less the same for all chroots. Is there a way > to pull those options into site-defaults.cfg? That's a good question. I'm not happy to say this, but currently there is no way. I'll try to come up with some solution to that, but it'll either involve parsing the config or splitting it into multiple configuration options that will be concatenated.
Michael patch commited as 572751f. Thanks.
mock-1.2.4-1.fc21 has been submitted as an update for Fedora 21. https://admin.fedoraproject.org/updates/mock-1.2.4-1.fc21
mock-1.2.4-1.fc20 has been submitted as an update for Fedora 20. https://admin.fedoraproject.org/updates/mock-1.2.4-1.fc20
mock-1.2.4-1.el7 has been submitted as an update for Fedora EPEL 7. https://admin.fedoraproject.org/updates/mock-1.2.4-1.el7
mock-1.2.4-1.el6 has been submitted as an update for Fedora EPEL 6. https://admin.fedoraproject.org/updates/mock-1.2.4-1.el6
Package mock-1.2.4-1.el7: * should fix your issue, * was pushed to the Fedora EPEL 7 testing repository, * should be available at your local mirror within two days. Update it with: # su -c 'yum update --enablerepo=epel-testing mock-1.2.4-1.el7' as soon as you are able to. Please go to the following url: https://admin.fedoraproject.org/updates/FEDORA-EPEL-2015-0312/mock-1.2.4-1.el7 then log in and leave karma (feedback).
mock-1.2.4-1.fc21 has been pushed to the Fedora 21 stable repository. If problems still persist, please make note of it in this bug report.
mock-1.2.4-1.fc20 has been pushed to the Fedora 20 stable repository. If problems still persist, please make note of it in this bug report.
mock-1.2.5-1.el7 has been submitted as an update for Fedora EPEL 7. https://admin.fedoraproject.org/updates/mock-1.2.5-1.el7
mock-1.2.5-1.el6 has been submitted as an update for Fedora EPEL 6. https://admin.fedoraproject.org/updates/mock-1.2.5-1.el6
mock-1.2.5-1.fc20 has been submitted as an update for Fedora 20. https://admin.fedoraproject.org/updates/mock-1.2.5-1.fc20
mock-1.2.5-1.fc21 has been submitted as an update for Fedora 21. https://admin.fedoraproject.org/updates/mock-1.2.5-1.fc21
mock-1.2.5-1.fc21 has been pushed to the Fedora 21 stable repository. If problems still persist, please make note of it in this bug report.
mock-1.2.6-1.el6 has been submitted as an update for Fedora EPEL 6. https://admin.fedoraproject.org/updates/mock-1.2.6-1.el6
mock-1.2.6-1.el7 has been submitted as an update for Fedora EPEL 7. https://admin.fedoraproject.org/updates/mock-1.2.6-1.el7
mock-1.2.6-1.fc20 has been submitted as an update for Fedora 20. https://admin.fedoraproject.org/updates/mock-1.2.6-1.fc20
mock-1.2.6-1.fc21 has been submitted as an update for Fedora 21. https://admin.fedoraproject.org/updates/mock-1.2.6-1.fc21
mock-1.2.6-1.fc21 has been pushed to the Fedora 21 stable repository. If problems still persist, please make note of it in this bug report.
mock-1.2.6-1.fc20 has been pushed to the Fedora 20 stable repository. If problems still persist, please make note of it in this bug report.
mock-1.2.6-1.el7 has been pushed to the Fedora EPEL 7 stable repository. If problems still persist, please make note of it in this bug report.
mock-1.2.6-1.el6 has been pushed to the Fedora EPEL 6 stable repository. If problems still persist, please make note of it in this bug report.