]> git.saurik.com Git - apt.git/blob - test/integration/test-bug-734922-apt-showsrc-duplicate
Merge pull request julian-klode/apt#3 from adrian17/master
[apt.git] / test / integration / test-bug-734922-apt-showsrc-duplicate
1 #!/bin/sh
2 set -e
3
4 TESTDIR=$(readlink -f $(dirname $0))
5 . $TESTDIR/framework
6 setupenvironment
7 configarchitecture 'i386'
8
9 # foo is identical, show it only once in showsrc
10 insertpackage "unstable" "foo" "i386" "1.0"
11 insertpackage "testing" "foo" "i386" "1.0"
12 insertsource "unstable" "foo" "i386" "1.0"
13 insertsource "testing" "foo" "i386" "1.0"
14
15 # bar is different, show twice
16 insertsource "unstable" "bar" "i386" "1.0"
17 insertsource "testing" "bar" "i386" "2.0"
18
19 setupaptarchive
20
21 # ensure "foo" is not shown twice
22 aptcache showsrc foo bar|grep ^Package: > out.txt
23 testequal "Package: foo
24 Package: bar
25 Package: bar" cat out.txt