Followup-For: Bug #648965 Control: severity -1 serious Setting the severity to serious as this is a regression from squeeze. I don't know if comixcursors is useful even without alternatives - in that case this can be lowered again.
Note for testers: upgrading from comixcursors/squeeze to
comixcursors-righthanded/wheezy will have the alternatives set up in
squeeze still installed - so first purge the squeeze package and install
the wheezy package afterwards.
The "new" alternatives code in the maintainer scripts is totally
broken:
* postinst uses
find /etc/X11/cursors -regex '.*ComixCursors-.*/index\.theme$'
to discover the themes, but that pattern would only match something in
/usr/share/icons
* preinst could call u-a with a missing argument (if REMOVED_LIST would
not be empty)
update-alternatives --remove $ICONDIR/$theme
That should be
update-alternatives --remove x-cursor-theme $ICONDIR/$theme
And why is there a
rm -f $ICONDIR/$theme
following it? If this is about removing obsolete conffiles, please
have a look at dpkg-maintscript-helper
* prerm (only comixcursors-righthanded) uses a pattern that would match
the cursor themes installed by the other variants (e.g. -lefthanded),
too, if it were applied in the correct directory, and would therefore
unregister *all* comixcursors-* themes, not just the ones from
comixcursors-righthanded. ComixCursors- is a prefix of
ComixCursors-Opaque, ComixCursors-LH, ComixCursors-LH-Opaque.
Right now it unregisters exactly the alternatives set up by the
postinst: NONE.
I noticed this while investigating the missing removal of the
alternatives during a piuparts distupgrade squeeze->wheezy + purge test.
Andreas
comixcursors_0.7.2-2.log.gz
Description: GNU Zip compressed data

