]>
git.saurik.com Git - apt.git/blob - test/integration/test-bug-543966-downgrade-below-1000-pin
4 TESTDIR
=$(readlink -f $(dirname $0))
8 configarchitecture
'i386'
10 insertpackage
'unstable' 'base-files' 'all' '5.0.0'
11 insertinstalledpackage
'base-files' 'all' '5.0.0-1'
15 STATUS
=$(readlink -f rootdir/var/lib/dpkg/status)
16 APTARCHIVE
="$(readlink -f aptarchive)/"
18 testsuccessequal
"base-files:
25 500 file:${APTARCHIVE} unstable/main i386 Packages" aptcache policy base
-files -o apt
::pin
=0
29 Pin: release a=unstable
30 Pin-Priority: $2" > rootdir
/etc
/apt
/preferences
39 if [ "$1" != '*' ]; then
42 PKGPIN
='Package pin: 5.0.0
46 testsuccessequal
"base-files:
49 ${PKGPIN}Version table:
50 *** 5.0.0-1 ${PKGPINPRIO:-99}
52 5.0.0 ${PKGPINPRIO:-99}
53 ${REPPINPRIO:- 99} file:${APTARCHIVE} unstable/main i386 Packages" aptcache policy base
-files -o apt
::pin
=99
56 testsuccessequal
"base-files:
59 ${PKGPIN}Version table:
60 *** 5.0.0-1 ${PKGPINPRIO:-100}
62 5.0.0 ${PKGPINPRIO:-100}
63 ${REPPINPRIO:- 100} file:${APTARCHIVE} unstable/main i386 Packages" aptcache policy base
-files -o apt
::pin
=100
66 testsuccessequal
"base-files:
69 ${PKGPIN}Version table:
70 *** 5.0.0-1 ${PKGPINPRIO:-999}
72 5.0.0 ${PKGPINPRIO:-999}
73 ${REPPINPRIO:- 999} file:${APTARCHIVE} unstable/main i386 Packages" aptcache policy base
-files -o apt
::pin
=999
76 testsuccessequal
"base-files:
79 ${PKGPIN}Version table:
80 *** 5.0.0-1 ${PKGPINPRIO:-1000}
82 5.0.0 ${PKGPINPRIO:-1000}
83 ${REPPINPRIO:-1000} file:${APTARCHIVE} unstable/main i386 Packages" aptcache policy base
-files -o apt
::pin
=1000
86 msgmsg
'Tests with generic-form pin'
88 msgmsg
'Tests with specific-form pin'
89 testpinning
'base-files'
90 msgmsg
'Tests with specific-form pin with glob'
91 testpinning
'base-fil*'
92 msgmsg
'Tests with specific-form pin with regex'
93 testpinning
'/^base-f[iI]les$/'