Re: x11-common preinst magic (was: X Strike Force X.Org X11 SVN commit: r621 - trunk/debian)
X Strike Force SVN Repository Admin <branden+svnadmin@deadbeast.net> wrote:
> Author: dnusinow
> Date: 2005-09-26 18:48:50 -0500 (Mon, 26 Sep 2005)
> New Revision: 621
> Modified:
> trunk/debian/changelog
> trunk/debian/x11-common.preinst.in
> Log:
> * Have x11-common preinst check for xfree86-common conffile modification. If
> there are no modifications, remove them so that dpkg doesn't prompt the
> user due to the package name change. Thanks Steve Langasek. (closes: #318688)
[...]
> +++ trunk/debian/x11-common.preinst.in 2005-09-26 23:48:50 UTC (rev 621)
> + # upgrade continue without errors
> + if dpkg --compare-versions "$2" eq "4.3.0.dfsg.1-14"; then
[...]
This won't work for two reasons:
- sarge has no x11-common package, so on upgrading from sarge to etch
"$2" in x11-common's preinst is empty.
- The version check is too strict, we alreay have a security update in
sarge (4.3.0.dfsg.1-14sarge1).
I do not see a nice solution currently, fixing #1 by putting the magic
in xfree86-common's mmaintainerscripts and making x11-common depend
on xfree86-common (>=6.8.0) seems to be hideously ugly.
How about simply removing the files on *fresh* installations of
x11-common? ( [ "$2" = "" ], iirc)
cu andreas
--
"See, I told you they'd listen to Reason," [SPOILER] Svfurlr fnlf,
fuhggvat qbja gur juveyvat tha.
Neal Stephenson in "Snow Crash"
Reply to: