Fix bootstrap pacman database setup
This commit is contained in:
1 file changed
+2
-2
@@ -127,8 +127,8 @@ else
|
|||||||
# package so we don't need a local checkout in the non-local-source path.
|
# package so we don't need a local checkout in the non-local-source path.
|
||||||
bootstrap_cache_dir=/tmp/omarchy-pkg-bootstrap
|
bootstrap_cache_dir=/tmp/omarchy-pkg-bootstrap
|
||||||
rm -rf "$bootstrap_cache_dir" /tmp/offlinedb-bootstrap /tmp/omarchy-pkglists
|
rm -rf "$bootstrap_cache_dir" /tmp/offlinedb-bootstrap /tmp/omarchy-pkglists
|
||||||
mkdir -p "$bootstrap_cache_dir"
|
mkdir -p "$bootstrap_cache_dir" /tmp/offlinedb-bootstrap
|
||||||
pacman --config /configs/pacman-online-${OMARCHY_MIRROR}.conf --noconfirm -Sw "$OMARCHY_RUNTIME_PACKAGE" --cachedir "$bootstrap_cache_dir" --dbpath /tmp/offlinedb-bootstrap >/dev/null
|
pacman --config /configs/pacman-online-${OMARCHY_MIRROR}.conf --noconfirm -Syw "$OMARCHY_RUNTIME_PACKAGE" --cachedir "$bootstrap_cache_dir" --dbpath /tmp/offlinedb-bootstrap >/dev/null
|
||||||
omarchy_pkg=$(find "$bootstrap_cache_dir" -maxdepth 1 -type f -name "$OMARCHY_RUNTIME_PACKAGE-*.pkg.tar.zst" | sort | head -1)
|
omarchy_pkg=$(find "$bootstrap_cache_dir" -maxdepth 1 -type f -name "$OMARCHY_RUNTIME_PACKAGE-*.pkg.tar.zst" | sort | head -1)
|
||||||
if [[ -z $omarchy_pkg ]]; then
|
if [[ -z $omarchy_pkg ]]; then
|
||||||
echo "ERROR: downloaded package for $OMARCHY_RUNTIME_PACKAGE not found in $bootstrap_cache_dir" >&2
|
echo "ERROR: downloaded package for $OMARCHY_RUNTIME_PACKAGE not found in $bootstrap_cache_dir" >&2
|
||||||
|
|||||||
Reference in new issue
Block a user