cleanup patches

Mike McLean <[email protected]> Mon, 7 Dec 2015 16:20:41 -0500
Newsgroups gmane.linux.rpm.metadata
Message-ID <[email protected]>
Sorry for the double send. I realized I used git apply instead of git am
first time and thought I ought to get the metadata right.

These patches are needed to prevent accumulation of temporary data in
/var/tmp when running createrepo frequently. This can cause significant
problems on Koji builders. It used to do the same for Copr, until they
switched to createrepo-c.

For background see:
https://bugzilla.redhat.com/show_bug.cgi?id=728584

The second patch ensures the cleanup happens even when createrepo fails.