Remove RPMS directory when reseting 'rotate' state
commit49f81c6936211d6cf1fe398ba5d7edc30468a4e4
authorPetr Písař <ppisar@redhat.com>
Wed, 21 May 2014 08:02:46 +0000 (21 10:02 +0200)
committerPetr Písař <ppisar@redhat.com>
Wed, 21 May 2014 08:02:46 +0000 (21 10:02 +0200)
treed20158b6cd4a821293d80ec88fb07fefd2da4ac3
parentcc7f2056068cc806780a4bd1374b07906af17911
Remove RPMS directory when reseting 'rotate' state

There is a new method F::R::Package::reset_rotate() for that. It's
called from F::R::Package::reset() automatically.

Not pruning RPMS directory with build binary packages caused rewriting
the package files content. This broke YUM downloading the package
when building a reverse dependency in the same build cycle as the
binary package has been rebuilt.

This affected dual-lived packages only.
lib/Fedora/Rebuild/Package.pm