1
0
Fork 0
apt/test/integration/test-bug-734922-apt-showsrc-duplicate
Daniel Baumann 6810ba718b
Adding upstream version 3.0.2.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
2025-06-20 21:10:43 +02:00

25 lines
624 B
Bash
Executable file

#!/bin/sh
set -e
TESTDIR=$(readlink -f $(dirname $0))
. $TESTDIR/framework
setupenvironment
configarchitecture 'i386'
# foo is identical, show it only once in showsrc
insertpackage "unstable" "foo" "i386" "1.0"
insertpackage "testing" "foo" "i386" "1.0"
insertsource "unstable" "foo" "i386" "1.0"
insertsource "testing" "foo" "i386" "1.0"
# bar is different, show twice
insertsource "unstable" "bar" "i386" "1.0"
insertsource "testing" "bar" "i386" "2.0"
setupaptarchive
# ensure "foo" is not shown twice
aptcache showsrc foo bar|grep ^Package: > out.txt
testequal "Package: foo
Package: bar
Package: bar" cat out.txt