~ubuntu-desktop/sane-backends/ubuntu

« back to all changes in this revision

Viewing changes to debian/libsane.preinst

  • Committer: Steve Langasek
  • Date: 2011-12-05 04:27:00 UTC
  • Revision ID: vorlon@debian.org-20111205042700-ldpfvju5yra4vg1m
Merge version 1.0.22-7 from Debian testing

Show diffs side-by-side

added added

removed removed

Lines of Context:
27
27
        mv /etc/udev/rules.d/025_libsane.rules /etc/udev/rules.d/z60_libsane.rules
28
28
    fi
29
29
 
30
 
    if [ -e "/etc/modprobe.d/libsane" ]; then
31
 
        if [ "`md5sum \"/etc/modprobe.d/libsane\" | sed -e \"s/ .*//\"`" = \
32
 
            "`dpkg-query -W -f='${Conffiles}' libsane | sed -n -e \"\\\\' /etc/modprobe.d/libsane's/.* //p\"`" ]
33
 
        then
34
 
            rm -f "/etc/modprobe.d/libsane"
35
 
        fi
36
 
    fi
37
 
 
38
 
    if [ -e "/etc/modprobe.d/blacklist-scanner" ]; then
39
 
        rm -f "/etc/modprobe.d/blacklist-scanner"
40
 
    fi
41
 
 
42
30
    ## Remove obsolete /etc/modprobe.d/libsane conffile
43
31
    if dpkg --compare-versions "$2" le "1.0.19-25"; then
44
32
        rm_conffile libsane /etc/modprobe.d/libsane