From: Ian Jackson Date: Sun, 30 Jun 2019 20:00:19 +0000 (+0100) Subject: test suite: enumerate-tests: Drop duplicate dependencies X-Git-Tag: archive/debian/9.0~21 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=6b7952dec7ec58eb978801a9623bfd47b271119a;hp=297af54a91c7cdb6484e85a91680a4cbfc3f4efc;p=dgit.git test suite: enumerate-tests: Drop duplicate dependencies No change to the output, other than to drop a second mention of `devscripts' from one stanza in debian/tests/control. Signed-off-by: Ian Jackson --- diff --git a/debian/tests/control b/debian/tests/control index 3d3fb65f..22c9d5c9 100644 --- a/debian/tests/control +++ b/debian/tests/control @@ -1,6 +1,6 @@ Tests: baredebian-multitar baredebian-push baredebian-tarball Tests-Directory: tests/tests -Depends: dgit, dgit-infrastructure, devscripts, debhelper (>=8), fakeroot, build-essential, chiark-utils-bin, bc, faketime, git-debrebase, git-buildpackage, devscripts, libdpkg-perl, libgit-wrapper-perl, liblist-compare-perl, libstring-shellquote-perl, libtry-tiny-perl, quilt +Depends: dgit, dgit-infrastructure, devscripts, debhelper (>=8), fakeroot, build-essential, chiark-utils-bin, bc, faketime, git-debrebase, git-buildpackage, libdpkg-perl, libgit-wrapper-perl, liblist-compare-perl, libstring-shellquote-perl, libtry-tiny-perl, quilt Tests: build-modes-gbp Tests-Directory: tests/tests diff --git a/tests/enumerate-tests b/tests/enumerate-tests index 3e0abd58..3406e1cc 100755 --- a/tests/enumerate-tests +++ b/tests/enumerate-tests @@ -52,6 +52,9 @@ restriction-gencontrol () { gencontrol-add-deps () { for dep in "$@"; do + case " $dependencies," in + *" "$dep","*) continue ;; + esac dependencies+="${dependencies:+, }$dep" done }