xbps-src: remove_pkg(): remove subpkg stat files in $wrksrc if found.
This commit is contained in:
parent
f9135c92c8
commit
6183d49629
1 changed files with 5 additions and 0 deletions
|
@ -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 $?
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue