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