Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/bin/clean-dependencies
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2019-01-21 14:40:20 +0100
committerErich Eckner <git@eckner.net>2019-01-21 14:40:20 +0100
commitd5a246926a733f1eff999724fe973e841f1193f7 (patch)
tree97e97e7b3efba4ba8c6aef0a23bfaeec12cd8ba4 /bin/clean-dependencies
parent3fd0add000051bc2c0ae066e08416e4bba362ebf (diff)
bin/clean-dependencies: hopefully fixed bad regex
Diffstat (limited to 'bin/clean-dependencies')
-rwxr-xr-xbin/clean-dependencies5
1 files changed, 1 insertions, 4 deletions
diff --git a/bin/clean-dependencies b/bin/clean-dependencies
index 1fbc244..82d49b3 100755
--- a/bin/clean-dependencies
+++ b/bin/clean-dependencies
@@ -11,9 +11,6 @@
# shellcheck source=../lib/load-configuration
. "${0%/*}/../lib/load-configuration"
-echo 'do not run this - it will remove too many dependencies'
-exit 42
-
deps_file=$(mktemp 'tmp.clean-dependencies.XXXXXXXXXX' --tmpdir)
trap 'rm "${deps_file}"' EXIT
@@ -45,7 +42,7 @@ trap 'rm "${deps_file}"' EXIT
continue
printf '%s\n' "${infos}" | \
sed '
- s/^.*"Requires":\("[^"]\+"\|\[[^[]]\+\]\).*$/\1/
+ s/^.*"Requires":\("[^"]\+"\|\[[^][]\+\]\).*$/\1/
t
d
' | \