summaryrefslogtreecommitdiff
path: root/bin/clean-dependencies
diff options
context:
space:
mode:
Diffstat (limited to 'bin/clean-dependencies')
-rwxr-xr-xbin/clean-dependencies8
1 files changed, 6 insertions, 2 deletions
diff --git a/bin/clean-dependencies b/bin/clean-dependencies
index a9105fb..a2da6ef 100755
--- a/bin/clean-dependencies
+++ b/bin/clean-dependencies
@@ -34,9 +34,13 @@ trap 'rm "${deps_file}"' EXIT
printf ' AND `install_targets`.`name` NOT IN ("base","base-devel");\n'
} | \
mysql_run_query | \
- pv --line-mode | \
while read -r id path; do
- curl -Ss "https://pkgapi.archlinux32.org/$path" | \
+ >&2 printf '.'
+ infos=$(
+ curl -Ss "https://pkgapi.archlinux32.org/$path"
+ ) || \
+ continue
+ printf '%s\n' "${infos}" | \
sed '
s/^.*"Requires":\("[^"]\+"\|\[[^[]]\+\]\).*$/\1/
t