apt: fixed test error

This commit is contained in:
Ruben Rodriguez 2019-04-26 22:54:18 -04:00
parent 776c1d2af7
commit 5e92a26d73

View file

@ -31,8 +31,8 @@ replace "http://archive.ubuntu.com/ubuntu/project/ubuntu-archive-keyring.gpg" "h
replace ubuntu-keyring trisquel-keyring . replace ubuntu-keyring trisquel-keyring .
replace ubuntu-archive-keyring trisquel-archive-keyring . replace ubuntu-archive-keyring trisquel-archive-keyring .
# hack, use special words to avoid duplicates in the test # hack, preserve this test untouched
sed 's/contrib/uncomon/g; s/non-free/rare/g' -i test/libapt/cdromfindpackages_test.cc cp test/libapt/cdromfindpackages_test.cc /tmp
# remove non-free examples https://trisquel.info/en/issues/5518 # remove non-free examples https://trisquel.info/en/issues/5518
sed '/non-free/d' -i ./test/integration/Packages-ubuntu-bug-614993 ./test/integration/status-ubuntu-bug-614993 sed '/non-free/d' -i ./test/integration/Packages-ubuntu-bug-614993 ./test/integration/status-ubuntu-bug-614993
replace "contrib main non-free" main . replace "contrib main non-free" main .
@ -47,6 +47,8 @@ replace contrib universe doc
replace contrib universe po replace contrib universe po
replace non-free main . replace non-free main .
cp /tmp/cdromfindpackages_test.cc test/libapt
# Ubuntu link to changelogs https://trisquel.info/en/issues/9967 # Ubuntu link to changelogs https://trisquel.info/en/issues/9967
replace "http://changelogs.ubuntu.com/changelogs" "http://packages.trisquel.info/changelogs" . replace "http://changelogs.ubuntu.com/changelogs" "http://packages.trisquel.info/changelogs" .
replace changelogs.ubuntu.com packages.trisquel.info . replace changelogs.ubuntu.com packages.trisquel.info .