forked from Shinonome/dots-hyprland
Update checkdeps
This commit is contained in:
@@ -6,11 +6,11 @@
|
|||||||
pkglistfile=$(mktemp)
|
pkglistfile=$(mktemp)
|
||||||
pkglistfile_orig=${LIST_FILE_PATH}
|
pkglistfile_orig=${LIST_FILE_PATH}
|
||||||
pkglistfile_orig_s=${REPO_ROOT}/cache/dependencies_stripped.conf
|
pkglistfile_orig_s=${REPO_ROOT}/cache/dependencies_stripped.conf
|
||||||
if ! $(command -v wget);then
|
if ! $(command -v curl);then
|
||||||
echo "Please install wget first.";exit 1
|
echo "Please install curl first.";exit 1
|
||||||
fi
|
fi
|
||||||
if ! $(command -v gunzip);then
|
if ! $(command -v gzip);then
|
||||||
echo "Please install gunzip first.";exit 1
|
echo "Please install gzip first.";exit 1
|
||||||
fi
|
fi
|
||||||
if ! $(command -v pacman);then
|
if ! $(command -v pacman);then
|
||||||
echo "pacman not found, aborting...";exit 1
|
echo "pacman not found, aborting...";exit 1
|
||||||
@@ -21,6 +21,7 @@ cat $pkglistfile_orig_s | sed "s_\ _\n_g" > $pkglistfile
|
|||||||
|
|
||||||
echo "The non-existent pkgs in $pkglistfile_orig are listed as follows."
|
echo "The non-existent pkgs in $pkglistfile_orig are listed as follows."
|
||||||
# Borrowed from https://bbs.archlinux.org/viewtopic.php?pid=1490795#p1490795
|
# Borrowed from https://bbs.archlinux.org/viewtopic.php?pid=1490795#p1490795
|
||||||
comm -23 <(sort -u $pkglistfile) <(sort -u <(wget -q -O - https://aur.archlinux.org/packages.gz | gunzip) <(pacman -Ssq))
|
#comm -23 <(sort -u $pkglistfile) <(sort -u <(wget -q -O - https://aur.archlinux.org/packages.gz | gunzip) <(pacman -Ssq))
|
||||||
|
comm -23 <(sort -u $pkglistfile) <(curl https://aur.archlinux.org/packages.gz | gzip -cd | sort)
|
||||||
echo "End of list. If nothing appears, then all pkgs exist."
|
echo "End of list. If nothing appears, then all pkgs exist."
|
||||||
rm $pkglistfile
|
rm $pkglistfile
|
||||||
|
|||||||
Reference in New Issue
Block a user