xbps-src: remove pkg statedir unless -C is set.
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user