Red Hat Bugzilla – Bug 222652
mock insists on downloading all RPMs each time!
Last modified: 2013-01-09 23:10:22 EST
Description of problem:
Just ran "mock init", in the understanding that it would set up some sort of
default (minimal?) environment, and then went "mock rebuild nmh-1.2-1.src.rpm".
This deleted everything and started from scratch! At least it could keep the
contents of /var/cache/yum (updating that as needed).
Version-Release number of selected component (if applicable):
Always (I presume, haven't got the bandwidth...)
Steps to Reproduce:
Creating a fresh chroot every time is the default behavior for mock.
If you want to use an existing chroot, use the --no-clean option. e.g.:
$ mock -r fedora-6-i386-core init
$ mock -r fedora-6-i386-core --no-clean <some-SRPM>
$ mock -r fedora-6-i386-core --no-clean <some-other-SRPM>