[Pkg-lyx-devel] Bug#767616: Bug#767616: Bug#767616: lyx: fails to upgrade from 'testing' - trying to overwrite /usr/share/icons/hicolor/48x48/apps/lyx.png

Per Olofsson pelle at dsv.su.se
Tue Nov 4 08:44:07 UTC 2014


Hi Nikos,

2014-11-03 16:19, Nikos Andrikos skrev:
> In lyx control file, there is this line:
> Depends: ... lyx-common (= ${source:Version}), ...
>
> I thought this is enough to make sure that along lyx 2.1.2-3, the only
> installable lyx-common version will be 2.1.2-3 .

No, it is not enough. Depends only ensures that the packages are 
configured in the right order, but there can still be different versions 
unpacked on the system at the same time. (One can use Pre-Depends to 
force packages to be unpacked in some order, but that is discouraged and 
needs approval.)

> If this is not the case, then we would need to add the breaks/replaces
> options as you suggested, but could you please confirm that this is
> the proper action?

Yes. You need something like

Package: lyx
...
Replaces: lyx-common (<< 2.1.2-3)
Breaks: lyx-common (<< 2.1.2-3)

-- 
Pelle



More information about the Pkg-lyx-devel mailing list