[DRE-commits] [pkg-ruby-extras] 01/02: build-and-upload: speed up search for reverse dependencies

Antonio Terceiro terceiro at moszumanska.debian.org
Sat Dec 10 16:54:52 UTC 2016


This is an automated email from the git hooks/post-receive script.

terceiro pushed a commit to branch master
in repository pkg-ruby-extras.

commit 99740c845653a03066a68ed78f5d583031ec33b5
Author: Antonio Terceiro <terceiro at debian.org>
Date:   Sat Dec 10 14:48:01 2016 -0200

    build-and-upload: speed up search for reverse dependencies
    
    replace N invocations of `chdist bin2src` with one of `chdist apt-cache`
    and one of `awk`
---
 build-and-upload | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/build-and-upload b/build-and-upload
index 34e993d..5718751 100755
--- a/build-and-upload
+++ b/build-and-upload
@@ -113,7 +113,7 @@ EOF
 test_reverse_dependencies() {
   local binaries="$(dh_listpackages)"
   local debs="$(dcmd --deb "$changes")"
-  local rdeps="$(chdist apt-cache unstable rdepends $binaries | grep '^\s' | xargs -n 1 chdist bin2src unstable | sort -u | grep -v "^${source}\$")"
+  local rdeps="$(chdist apt-cache unstable rdepends $binaries | sed -e '/^\s/!d; s/|//' | sort -u | xargs chdist apt-cache unstable show | grep-dctrl -s Package,Source '' | awk '{ if ($1=="Package:") { pkg = $2 }; if ($1=="Source:") { pkg = $2 }; if ($1=="") { print(pkg) } } END { print(pkg) }' | sort -u | grep -v "^${source}\$")"
   local failed_rdeps=""
   local do_test=y
   if [ -n "$rdeps" ]; then

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-ruby-extras/pkg-ruby-extras.git



More information about the Pkg-ruby-extras-commits mailing list