Skip to content

Commit

Permalink
Tweak cachedir handling
Browse files Browse the repository at this point in the history
  • Loading branch information
mlschroe committed Jan 25, 2022
1 parent bba84fb commit acf1d89
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions build
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,7 @@ BUILD_FLAVOR=
OBS_PACKAGE=
OBSURL=
NO_TIMESTAMPS=
CACHE_DIR=
BUILD_DIST_TMP=
BUILD_SUCCEEDED=
COPY_SOURCES_ASIS=
Expand Down
2 changes: 1 addition & 1 deletion build-vm
Original file line number Diff line number Diff line change
Expand Up @@ -786,7 +786,7 @@ vm_setup() {
if test ! -w /root ; then
find "$BUILD_ROOT" -type d -not -perm /200 -print0 | xargs -0 --no-run-if-empty chmod +w
fi
find "$BUILD_ROOT" -mindepth 1 -maxdepth 1 -print0 | xargs -0 --no-run-if-empty rm -rf
rm -rf "$BUILD_ROOT"/* "$BUILD_ROOT"/.[^.]*
if test -z "$CLEAN_BUILD" -a -e "$VM_ROOT" ; then
echo "Recovering former build root"
debugfs -f <(echo rdump / "$BUILD_ROOT") "$VM_ROOT" 2>/dev/null
Expand Down
4 changes: 2 additions & 2 deletions init_buildsystem
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,6 @@ repos=()

. $BUILD_DIR/common_functions || exit 1

detect_cache_dir

# should RPMs be installed with --force ?
USE_FORCE=false
PREPARE_VM=
Expand All @@ -60,6 +58,7 @@ RPMLIST=
CLEAN_BUILD=
CREATE_BUILD_BINARIES=
DLNOSIGNATURE=
CACHE_DIR=
OBSURL=
BUILD_SYSROOT=
test -z "$CONFIG_DIR" && CONFIG_DIR="$BUILD_DIR/configs"
Expand Down Expand Up @@ -139,6 +138,7 @@ if test -z "$BUILD_ROOT" ; then
echo "Please specify a build root!"
exit 1
fi
test -z "$CACHE_DIR" && detect_cache_dir

BUILD_IS_RUNNING=$BUILD_ROOT/not-ready
TMPFILE=$BUILD_ROOT/tmpfile
Expand Down

0 comments on commit acf1d89

Please sign in to comment.