On Tue, May 15, 2012 at 01:16:31AM +0200, Marco d'Itri wrote:
> On May 15, Josh Triplett <j...@joshtriplett.org> wrote:
> 
> > Going by that post, would something like the following in the configure
> > section of the postinst work?
> Not quite, this would be too much easy.
> At least, we need to check in preinst for the *actual* md5sum of the 
> version of /etc/init.d/networking installed by the old package, set a 
> flag file (maybe containing this md5sum) and then delete the file in 
> postinst if needed.

If you mean to handle upgrades from versions of netbase that shipped a
different version of /etc/init.d/networking, note that
/etc/init.d/networking has not changed since squeeze, so the squeeze
netbase would have exactly the same md5sum; I checked. :)  And since
Debian doesn't support upgrades that skip a release, an unmodified
version of /etc/init.d/networking can only have the one md5sum that I
listed.  So, the code I provided will work for any supported upgrade
scenario.

(I agree that the general case for arbitrary packages requires the
approach you suggest, but in this particular case the simpler version
with a single hardcoded md5sum will work just fine.)

- Josh Triplett



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to