Adapt to mock-1.4.1-1.fc25master
commit99c20f579b05ee19047d42984fc2aedda1255405
authorPetr Písař <ppisar@redhat.com>
Thu, 11 May 2017 13:42:53 +0000 (11 15:42 +0200)
committerPetr Písař <ppisar@redhat.com>
Thu, 11 May 2017 13:42:53 +0000 (11 15:42 +0200)
tree13db491ef179ad5d80aae71acfb3ab021c708084
parent1af2a5aa2a231abb1ad7fa6609f35bbcd5c4d4b1
Adapt to mock-1.4.1-1.fc25

Since mock-1.4.1-1.fc25, building source packages fails after
removing %{_topdir} directory (necessary for reusing shared mock
environments to prevent from contaminations from previous builds). It
leads to:

Permission denied: '/var/lib/mock/fedorarebuild-x86_64-scfmyei6vf/root/builddir/build/SOURCES'

Even the BUILDROOT, SOURCES etc. subdirectories must stay.

This patch changes the cleaning to remove only content of the
BUILDROOT, SOURCES etc. subdirectories.
lib/Fedora/Rebuild/Package.pm