[Pkg-lyx-devel] svn commit: r405 - in /lyx/trunk/debian: changelog lyx-common.preinst

Per Olofsson pelle at dsv.su.se
Wed Dec 12 17:56:20 UTC 2007


Hi,

Sven Hoexter wrote:
> I've just read over the stuff again I don't really get the point of this
> condition check:
> 
> 	  if dpkg --compare-versions "$2" le "1.5.2"; then
> 
> AFAIK the $2 will be the new version that will be installed

No, it's the old version which is being replaced. See:

http://www.debian.org/doc/debian-policy/ch-maintainerscripts.html#s-mscriptsinstact

> and the script
> in the wiki compared it to $LASTVERSION. I haven't heard that's an
> enviroment variable from dpkg so I replaced it 

Correct, I think.

> well with what will be
> our next version.

Nah, it should be the last version where the conffile existed.

-- 
Pelle



More information about the Pkg-lyx-devel mailing list