X-Git-Url: https://git.saurik.com/apt.git/blobdiff_plain/321213f0dcdcdaab04e01663e7a047b261400c9c..5146566b022c1821d85d79e60ca5ba69d31370e1:/test/integration/test-apt-get-source?ds=sidebyside diff --git a/test/integration/test-apt-get-source b/test/integration/test-apt-get-source index 48a70277c..99777a530 100755 --- a/test/integration/test-apt-get-source +++ b/test/integration/test-apt-get-source @@ -27,7 +27,7 @@ insertsource 'stable' 'foo' 'all' '1.0' insertsource 'wheezy' 'foo' 'all' '0.0.1' insertsource 'wheezy' 'foo' 'all' '0.1' -# the order of these versions is choosen to ensure that +# the order of these versions is chosen to ensure that # * apt will pick the one in the correct release, despite a higher version coming later and # * apt will pick the highest version in a release, despite a lower version coming later. # (bts #746412) @@ -35,6 +35,11 @@ insertsource 'stable' 'baz' 'all' '1.0' insertsource 'unstable' 'baz' 'all' '2.0' insertsource 'unstable' 'baz' 'all' '1.5' +# ensure we really have the situation we wanted (first 2.0 is foo above) +testequal 'Version: 2.0 +Version: 2.0 +Version: 1.5' grep '^Version:' aptarchive/dists/unstable/main/source/Sources + insertsource 'stable' 'bar' 'any' '1.1' 'Vcs-Browser: https://anonscm.debian.org/cgit/bar/bar.git Vcs-Git: git://anonscm.debian.org/bar/bar.git -b debian/experimental'