aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian Dolbec <dolsen@gentoo.org>2022-07-11 17:58:23 -0700
committerBrian Dolbec <dolsen@gentoo.org>2022-07-11 17:58:23 -0700
commit4a56a7feff4fe8ed427cddff6e6b2719f0fe58c3 (patch)
tree52dc1387ec68061b5d84dd1becf8b8170c8d84a8
parenteclean/pkgindex.py: Fix typo in function call (diff)
downloadgentoolkit-4a56a7feff4fe8ed427cddff6e6b2719f0fe58c3.tar.gz
gentoolkit-4a56a7feff4fe8ed427cddff6e6b2719f0fe58c3.tar.bz2
gentoolkit-4a56a7feff4fe8ed427cddff6e6b2719f0fe58c3.zip
revdep-rebuild.sh: Create its cache dir if it doesn't exist
Bug: https://bugs.gentoo.org/382009 Signed-off-by: Brian Dolbec <dolsen@gentoo.org>
-rwxr-xr-xbin/revdep-rebuild.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/bin/revdep-rebuild.sh b/bin/revdep-rebuild.sh
index 5fecf97..7ee3647 100755
--- a/bin/revdep-rebuild.sh
+++ b/bin/revdep-rebuild.sh
@@ -570,7 +570,8 @@ verify_tmpdir() {
elif [[ -d $1 ]]; then
cd "$1"
else
- die 1 "Unable to find a satisfactory location for temporary files ($1)"
+ mkdir -p "$1"
+ cd "$1"
fi
[[ $VERBOSE ]] && einfo "Temporary cache files are located in $PWD"
setup_rm