> * Savvas Radevic <vice...@gmail.com> [2009-06-02 15:51]: > >> Ah wait, now I get it. Rafael, is "Breaks" allowed on older libmtp* packages? > > No, for the same reason Replaces is not allowed. > >> It seems like libmtp5-7 might require the older rules (not in /lib) > > The libmtp7 package contains the file /etc/udev/rules.d/libmtp7.rules. This > file is not touched by libmtp8, AFAIK.
OK, thanks again > On the other hand, libmtp5 seems to be affected by the following offending > code in postinst: > > if dpkg --compare-versions "$2" lt-nl 0.3.7-3 ; then > mv_conffile /etc/udev/$PACKAGE.rules \ > /etc/udev/rules.d/45-$PACKAGE.rules > fi > > I do not remember why the above is necessary. Could you please refresh my > memory, Savvas? "/etc/udev/$PACKAGE.rules" was in the wrong directory, the correct one is and should be in "/etc/udev/rules.d/45-$PACKAGE.rules" that's why the files are moved. But that's not it, since $PACKAGE is libmtp8 actually: package=lib...@soversion@ I'll check the code more tonight, but consider this: Looks like libmtp5 is not using libmtp5.rules: > rangda[/home/sean] dpkg -S /etc/udev/rules.d/libmtp.rules [2] > :( > libmtp5: /etc/udev/rules.d/libmtp.rules ..which points to /etc/udev/libmtp.rules: > rangda[/home/sean] ls -l /etc/udev/rules.d/libmtp.rules > :) > lrwxrwxrwx 1 root root 15 2007-06-09 15:19 /etc/udev/rules.d/libmtp.rules -> > ../libmtp.rules ..which is removed by debian/libmtp.postinst.in: rm -f /etc/udev/libmtp.rules I think that it's correct, but leaves a dangling symlink. Also, I think it needs to remove the symlink "/etc/udev/rules.d/libmtp.rules" (non-versioned) too. We can do it similarly to the one with the versioned symlink: In debian/libmtp.postinst.in: oldlink=/etc/udev/rules.d/libmtp8.rules if [ -L $oldlink -a ! -f $oldlink ] ; then rm -f $oldlink fi oldlink2=/etc/udev/rules.d/libmtp.rules if [ -L $oldlink2 -a ! -f $oldlink2 ] ; then rm -f $oldlink2 fi -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org