Newsgroups: linux.debian.bugs.dist
From: Andreas Beckmann <deb...@abeckmann.de>
Date: Fri, 11 May 2012 03:50:01 +0200
Local: Thurs, May 10 2012 9:50 pm
Subject: Bug#670494: fixing this
Hi Norbert,
[don't forget to Cc: the -submitter]
On Friday, 11. May 2012 01:21:10 Norbert Preining wrote:
> I have made the following additions to the preinst of ptex-bin:
preinst is probably too early to remove the diversions (the old package is still installed so both orig_file (the version from ptex-bin) and diverted_file (from whatever package) could exist in the file system. But postinst should be fine to do the cleanup. > if dpkg --compare-versions "$2" le "2011.20120509-1" ; then
use 'le-nl' unless you want to run this on initial install ($2=""), too
> # these will give a warning message for installations who
For noiseless removal of diversions you could use something like:
> # did install ptex-bin only from 2011 and not the old one Pre-Depends: dpkg (>= 1.15)
undivert()
}
undivert /usr/bin/pltotf
undivert /usr/share/man/man1/pltotf.1.gz undivert /usr/bin/tftopl undivert /usr/share/man/man1/tftopl.1.gz (untested, but in glx-diversions.postinst I used something much more complex > Please let me know if you think this appropriate or if we need anything
You only need to remove the old diversions, there are no new diversions to be > more? created? Andreas
-- You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
| ||||||||||||||