xbps-src: remove pkg statedir unless -C is set.
This commit is contained in:
parent
cf072df0f7
commit
5929c2458a
2 changed files with 8 additions and 1 deletions
|
@ -91,6 +91,7 @@ install_pkg() {
|
|||
remove_pkg_wrksrc
|
||||
setup_pkg $sourcepkg $cross
|
||||
remove_pkg $cross
|
||||
remove_pkg_statedir
|
||||
fi
|
||||
|
||||
# If base-chroot not installed, install "base-files" into masterdir
|
||||
|
@ -151,6 +152,12 @@ remove_pkg_wrksrc() {
|
|||
fi
|
||||
}
|
||||
|
||||
remove_pkg_statedir() {
|
||||
if [ -d "$XBPS_STATEDIR" ]; then
|
||||
rm -rf "$XBPS_STATEDIR"
|
||||
fi
|
||||
}
|
||||
|
||||
remove_pkg() {
|
||||
local cross="$1" _destdir f
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue