]>
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
27 echo 'Package: base-files
28 Pin: release a=unstable
29 Pin-Priority: 99' > rootdir
/etc
/apt
/preferences
31 testsuccessequal
"base-files:
39 500 file:${APTARCHIVE} unstable/main i386 Packages" aptcache policy base
-files -o apt
::pin
=99
41 echo 'Package: base-files
42 Pin: release a=unstable
43 Pin-Priority: 100' > rootdir
/etc
/apt
/preferences
45 testsuccessequal
"base-files:
53 500 file:${APTARCHIVE} unstable/main i386 Packages" aptcache policy base
-files -o apt
::pin
=100
55 echo 'Package: base-files
56 Pin: release a=unstable
57 Pin-Priority: 999' > rootdir
/etc
/apt
/preferences
59 testsuccessequal
"base-files:
67 500 file:${APTARCHIVE} unstable/main i386 Packages" aptcache policy base
-files -o apt
::pin
=999
69 echo 'Package: base-files
70 Pin: release a=unstable
71 Pin-Priority: 1000' > rootdir
/etc
/apt
/preferences
73 testsuccessequal
"base-files:
81 500 file:${APTARCHIVE} unstable/main i386 Packages" aptcache policy base
-files -o apt
::pin
=1000