diff --git a/makechrootpkg.in b/makechrootpkg.in index 8d8fd05..03e7fb6 100644 --- a/makechrootpkg.in +++ b/makechrootpkg.in @@ -272,8 +272,10 @@ download_sources() { # Ensure sources are downloaded sudo -u "$makepkg_user" env SRCDEST="$SRCDEST" BUILDDIR="$builddir" \ - makepkg --config="$copydir/etc/makepkg.conf" --verifysource -o || - die "Could not download sources." + makepkg --config="$copydir/etc/makepkg.conf" --verifysource -o || { + rm -rf "$builddir" + die "Could not download sources." + } # Clean up garbage from verifysource rm -rf "$builddir"