~ubuntu-branches/ubuntu/maverick/libmtp/maverick

« back to all changes in this revision

Viewing changes to debian/libmtp.postinst.in

  • Committer: Bazaar Package Importer
  • Author(s): Martin Pitt
  • Date: 2009-11-06 18:34:31 UTC
  • mfrom: (0.1.2 experimental) (16.1.2 squeeze)
  • Revision ID: james.westby@ubuntu.com-20091106183431-v0g6li7r45mff75c
Tags: 0.3.7-7ubuntu1
* Merge to Debian testing; Remaining Ubuntu changes:
  - src/music-players.h: Drop "Sansa e280" product ID 0x7421, since it's
    just the e280 in MSC mode; we already use PTP mode, and these two
    conflict. Taken from upstream CVS. (LP: #355998)

Show diffs side-by-side

added added

removed removed

Lines of Context:
18
18
 
19
19
case "$1" in
20
20
configure)
21
 
    if dpkg --compare-versions "$2" lt-nl 0.2.6.1-2ubuntu1 ; then
22
 
        mv_conffile /etc/udev/libmtp@SOVERSION@.rules \
23
 
                    /etc/udev/rules.d/45-libmtp@SOVERSION@.rules
 
21
    # Remove broken link (0.3.7-3 upgrade, bug #527206)
 
22
    oldlink=/etc/udev/rules.d/libmtp8.rules
 
23
    if [ -L $oldlink -a ! -f $oldlink ] ; then
 
24
        rm -f $oldlink
24
25
    fi
25
26
 
 
27
    if dpkg --compare-versions "$2" lt-nl 0.3.7-3 ; then
 
28
        mv_conffile /etc/udev/$PACKAGE.rules \
 
29
                    /etc/udev/rules.d/45-$PACKAGE.rules
 
30
    fi
26
31
esac
27
32
 
28
33
#DEBHELPER#