chiark / gitweb /
test suite: enumerate-tests: Drop duplicate dependencies
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 30 Jun 2019 20:00:19 +0000 (21:00 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 30 Jun 2019 20:11:32 +0000 (21:11 +0100)
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 <ijackson@chiark.greenend.org.uk>
debian/tests/control
tests/enumerate-tests

index 3d3fb65f9c60153e7148c4063e32300aa1cb5a15..22c9d5c970f82a586c4e7cb7157b534883660d90 100644 (file)
@@ -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
index 3e0abd58ab35cf17ae39eb9e33523ae181cf57c9..3406e1cce38426244a45364450c2ab713ce29b11 100755 (executable)
@@ -52,6 +52,9 @@ restriction-gencontrol () {
 
 gencontrol-add-deps () {
        for dep in "$@"; do
+               case " $dependencies," in
+               *" "$dep","*)   continue ;;
+               esac
                dependencies+="${dependencies:+, }$dep"
        done
 }