xbps-src: remove_pkg(): remove subpkg stat files in $wrksrc if found.

This commit is contained in:
Juan RP 2010-12-23 13:14:18 +01:00
parent f9135c92c8
commit 6183d49629

View file

@ -199,10 +199,15 @@ remove_pkg()
if [ -d "$XBPS_DESTDIR/${subpkg}-${ver%_*}" ]; then
rm -rf "$XBPS_DESTDIR/${subpkg}-${ver%_*}"
fi
# Remove leftover files in $wrksrc.
if [ -f "${wrksrc}/.xbps_do_install_${subpkg}_done" ]; then
rm -f ${wrksrc}/.xbps_do_install_${subpkg}_done
fi
done
if [ -d "$XBPS_DESTDIR/${pkgname}-${ver%_*}" ]; then
rm -rf "$XBPS_DESTDIR/${pkgname}-${ver%_*}"
fi
return $?
}