[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: On robustness of maintainer scripts



* Jakub Wilk <jwilk@debian.org>, 2013-05-10, 00:41:
postinst
========
[...]
Test-case (in a squeeze chroot, with wheezy added to sources.lists):
# dpkg --unpack cpuset_1.5.6-2_all.deb
# apt-get install -t squeeze python2.6
# apt-get install -t wheezy python gcc-4.4
# dpkg --force-depends -r libssl0.9.8
# dpkg -i python-pkg-resources_0.6.24-1_all.deb

Blargh, I suck at copying&pasting:
g/cpuset/d


prerm
=====
[...]
Test case (in wheezy chroot):
# apt-get install -q python-pkg-resources
# dpkg --force-depends -r libssl0.9.8
# dpkg -r python-ipaddr

s/wheezy/squeeze/
s/ipaddr/pkgresources/


A different test case (in squeeze chroot):
# apt-get install python-pkg-resources
# dpkg --unpack --auto-deconfigure python-minimal_2.7.3-4_all.deb # dpkg -r python-pkg-resources

--
Jakub Wilk


Reply to: