summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwheatdog <wheatdoge@gmail.com>2019-02-27 09:59:26 +0800
committerwheatdog <wheatdoge@gmail.com>2019-02-27 09:59:26 +0800
commit662f27a2a9fbee2e51283f7fea97b7196a820d12 (patch)
tree2fd1f51ec4d5301ffb85c1dcc41ed1de0964376d
parent0c8c66c5bbeb23117027543a4ce37b7c4fe16f09 (diff)
downloadaurutils-extra-662f27a2a9fbee2e51283f7fea97b7196a820d12.tar.gz
aurutils-extra-662f27a2a9fbee2e51283f7fea97b7196a820d12.tar.zst
aurutils-extra-662f27a2a9fbee2e51283f7fea97b7196a820d12.zip
I think we don't need --ignore{,-file}
-rwxr-xr-xaur-fetch-all21
1 files changed, 5 insertions, 16 deletions
diff --git a/aur-fetch-all b/aur-fetch-all
index 2b2e1c2..45c18e2 100755
--- a/aur-fetch-all
+++ b/aur-fetch-all
@@ -77,8 +77,7 @@ if [[ -t 2 && ! -o xtrace ]]; then
fi
opt_short='d:a:p:'
-opt_long=('ignore:' 'ignore-file:' 'aurpkg-file:' 'pkgbuild-dir:'
- 'list' 'no-fetch' 'no-check')
+opt_long=('aurpkg-file:' 'pkgbuild-dir:' 'list' 'no-fetch' 'no-check')
opt_hidden=('dump-options')
if ! parseopts "$opt_short" "${opt_long[@]}" "${opt_hidden[@]}" -- "$@"; then
@@ -95,9 +94,6 @@ while true; do
--list) list=1 ;;
--no-check) check=0 ;;
--no-fetch) fetch=0 ;;
- --ignore) shift; IFS=, read -a pkg -r <<< "$1"
- pkg_i+=("${pkg[@]}") ;;
- --ignore-file) shift; mapfile -t pkg_i < "$1" ;;
--dump-options) printf -- '--%s\n' "${opt_long[@]}" ;
printf -- '%s' "${opt_short}" | sed 's/.:\?/-&\n/g' ;
exit ;;
@@ -137,17 +133,10 @@ aur prunedep -f depends_0 -e installable_packages -s "$aurpkg_file" >depends
# $1 pkgname $2 pkgbase $3 pkgver
cut -f2 --complement depends | sort -u >pkginfo
-{ if ((${#pkg_i[@]})); then
- printf >&2 'warning: ignoring %s package\n' "${pkg_i[@]}"
- printf '%s\n' "${pkg_i[@]}"
- fi
-
- # packages that have higher version in the repository "$db_name"
- if ((check)); then
- cut -f1,3 pkginfo | aur vercmp -p db_info -c
- fi
-
-} >filter
+# packages that have higher version in the repository "$db_name"
+if ((check)); then
+ cut -f1,3 pkginfo | aur vercmp -p db_info -c
+fi >filter
# pkgname queue (AUR + repos)
order depends | lib32 | complement filter >queue_0