[arch-projects] [devtools] [PATCH] Remove finddeps tool

Jelle van der Waa jelle at vdwaa.nl
Mon May 6 14:10:09 UTC 2019


From: Jelle van der Waa <jelle at vdwaa.nl>

finddeps depends on a no longer existing ABS tree. This data can also be
queried via archweb.
---
 .gitignore        |  1 -
 Makefile          |  1 -
 finddeps.in       | 41 -----------------------------------------
 zsh_completion.in |  6 +-----
 4 files changed, 1 insertion(+), 48 deletions(-)
 delete mode 100644 finddeps.in

diff --git a/.gitignore b/.gitignore
index b63587b..49afce6 100644
--- a/.gitignore
+++ b/.gitignore
@@ -6,7 +6,6 @@ archrelease
 bash_completion
 checkpkg
 commitpkg
-finddeps
 lddd
 makechrootpkg
 mkarchroot
diff --git a/Makefile b/Makefile
index ba2d3e4..15c2786 100644
--- a/Makefile
+++ b/Makefile
@@ -10,7 +10,6 @@ IN_PROGS = \
 	archrelease \
 	archbuild \
 	lddd \
-	finddeps \
 	rebuildpkgs \
 	find-libdeps \
 	crossrepomove\
diff --git a/finddeps.in b/finddeps.in
deleted file mode 100644
index 2a085e5..0000000
--- a/finddeps.in
+++ /dev/null
@@ -1,41 +0,0 @@
-#!/bin/bash
-#
-# finddeps - find packages that depend on a given depname
-#
-# License: Unspecified
-
-m4_include(lib/common.sh)
-
-match=$1
-
-if [[ -z $match ]]; then
-	echo 'Usage: finddeps <depname>'
-	echo ''
-	echo 'Find packages that depend on a given depname.'
-	echo 'Run this script from the top-level directory of your ABS tree.'
-	echo ''
-	exit 1
-fi
-
-find . -type d | while read -r d; do
-	if [[ -f "$d/PKGBUILD" ]]; then
-		pkgname=() depends=() makedepends=() optdepends=()
-		# shellcheck source=PKGBUILD.proto
-		. "$d/PKGBUILD"
-		for dep in "${depends[@]}"; do
-			# lose the version comparator, if any
-			depname=${dep%%[<>=]*}
-			[[ $depname = "$match" ]] && echo "$d (depends)"
-		done
-		for dep in "${makedepends[@]}"; do
-			# lose the version comparator, if any
-			depname=${dep%%[<>=]*}
-			[[ $depname = "$match" ]] && echo "$d (makedepends)"
-		done
-		for dep in "${optdepends[@]/:*}"; do
-			# lose the version comaparator, if any
-			depname=${dep%%[<>=]*}
-			[[ $depname = "$match" ]] && echo "$d (optdepends)"
-		done
-	fi
-done
diff --git a/zsh_completion.in b/zsh_completion.in
index 45429bd..5f2111f 100644
--- a/zsh_completion.in
+++ b/zsh_completion.in
@@ -1,4 +1,4 @@
-#compdef archbuild archco arch-nspawn archrelease commitpkg finddeps makechrootpkg mkarchroot rebuildpkgs extrapkg=commitpkg corepkg=commitpkg testingpkg=commitpkg stagingpkg=commitpkg communitypkg=commitpkg community-testingpkg=commitpkg community-stagingpkg=commitpkg multilibpkg=commitpkg multilib-testingpkg=commitpkg extra-x86_64-build=archbuild testing-x86_64-build=archbuild staging-x86_64-build=archbuild multilib-build=archbuild multilib-testing-build=archbuild multilib-staging-build=archbuild kde-unstable-x86_64-build=archbuild gnome-unstable-x86_64-build=archbuild communityco=archco
+#compdef archbuild archco arch-nspawn archrelease commitpkg makechrootpkg mkarchroot rebuildpkgs extrapkg=commitpkg corepkg=commitpkg testingpkg=commitpkg stagingpkg=commitpkg communitypkg=commitpkg community-testingpkg=commitpkg community-stagingpkg=commitpkg multilibpkg=commitpkg multilib-testingpkg=commitpkg extra-x86_64-build=archbuild testing-x86_64-build=archbuild staging-x86_64-build=archbuild multilib-build=archbuild multilib-testing-build=archbuild multilib-staging-build=archbuild kde-unstable-x86_64-build=archbuild gnome-unstable-x86_64-build=archbuild communityco=archco
 # License: Unspecified
 
 m4_include(lib/valid-tags.sh)
@@ -29,10 +29,6 @@ _commitpkg_args=(
 	'1:commit_msg'
 )
 
-_finddeps_args=(
-	'1:packages:_devtools_completions_all_packages'
-)
-
 _makechrootpkg_args=(
 	'-I[Install a package into the working copy]:target:_files -g "*.pkg.tar.*(.)"'
 	'-c[Clean the chroot before building]'
-- 
2.21.0


More information about the arch-projects mailing list