From e5934c3eedb6a7b6bc26e54d11d451e532c5c180 Mon Sep 17 00:00:00 2001 From: clsty Date: Thu, 30 Oct 2025 12:47:06 +0800 Subject: [PATCH] Update checkdeps --- sdata/subcmd-checkdeps/0.run.sh | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/sdata/subcmd-checkdeps/0.run.sh b/sdata/subcmd-checkdeps/0.run.sh index cc8465a91..3e41a9f35 100644 --- a/sdata/subcmd-checkdeps/0.run.sh +++ b/sdata/subcmd-checkdeps/0.run.sh @@ -6,6 +6,15 @@ pkglistfile=$(mktemp) pkglistfile_orig=${LIST_FILE_PATH} pkglistfile_orig_s=${REPO_ROOT}/cache/dependencies_stripped.conf +if ! $(command -v wget);then + echo "Please install wget first.";exit 1 +fi +if ! $(command -v gunzip);then + echo "Please install gunzip first.";exit 1 +fi +if ! $(command -v pacman);then + echo "pacman not found, aborting...";exit 1 +fi remove_bashcomments_emptylines $pkglistfile_orig $pkglistfile_orig_s cat $pkglistfile_orig_s | sed "s_\ _\n_g" > $pkglistfile @@ -15,4 +24,3 @@ echo "The non-existent pkgs in $pkglistfile_orig are listed as follows." comm -23 <(sort -u $pkglistfile) <(sort -u <(wget -q -O - https://aur.archlinux.org/packages.gz | gunzip) <(pacman -Ssq)) echo "End of list. If nothing appears, then all pkgs exist." rm $pkglistfile -