[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#624726: latex-cjk-japanese-wadalab.preinst: misuses dpkg --compare-versions



Package: latex-cjk-japanese-wadalab
Version: 0.20050817-15
Severity: minor
Justification: cosmetic

When installing latex-cjk-japanese-wadalab:

| (Reading database ... 152050 files and directories currently installed.)
| Preparing to replace latex-cjk-japanese-wadalab 0.20050817-15 (using .../latex-cjk-japanese-wadalab_0.20050817-15_all.deb) ...
| dpkg: error: version 'latex-cjk-japanese-wadalab_0.20050817-14' has bad syntax: version number does not start with digit
| Unpacking replacement latex-cjk-japanese-wadalab ...
| Setting up latex-cjk-japanese-wadalab (0.20050817-15) ...
| Running mktexlsr. This may take some time... done.
| Processing triggers for fontconfig ...
| Processing triggers for tex-common ...
| Running updmap-sys. This may take some time... done.
| Running mktexlsr /var/lib/texmf ... done.

I suspect future dpkg versions will change the conditions when that error
is emitted, but anyway, in this example it is pointing to a real bug:
"dpkg --compare-versions" wants a version number, which in this case would
be 0.20050817-14 rather than that longer string.

Perhaps this would be worth a lintian check?  Cc-ing the lintian
maintainers just in case.

The fix might be as simple as changing

    if dpkg --compare-versions "$2" le "latex-cjk-japanese-wadalab_0.20050817-14"; then

to

    if dpkg --compare-versions "$2" le "0.20050817-14"; then

or removing the conffile removal code in preinst altogether (who is
upgrading from such old versions?).

Thanks for keeping Debian working well in Japanese.

Regards,
Jonathan



Reply to: