The entry

    # Clear PPD cache if we upgrade to 1.5.x
    if dpkg --compare-versions "$2" lt-nl "1.5.0-3"; then
        rm /var/cache/cups/ppds.dat 2> /dev/null || :
    fi

in cups.postinst is very old. It is still from the transition from 1.4.x
to 1.5.x. Updating the original Precise with packages from precise-
proposed will never trigger this.

The entry

    if dpkg --compare-versions "$2" lt-nl "1.5.3-3"; then
        if ! echo $list | grep -q "\bipp14\b"; then
            list=`echo $list | sed -e 's/\bipp\b/ipp,ipp14/g'`
        fi
    fi

would be executed all the time in Precise. It would nned to be changed
to

    if dpkg --compare-versions "$2" lt-nl "1.5.3-0ubuntu2"; then
    ...

The impact is low. It affects only users who deactivate CUPS backends
via debconf, which in Ubuntu probably nearly no one does. If it is
executed all the time on updates, "ipp14" gets always re-activated.
"ipp14" has no bad impact on system behavior though as it does not do
any time-consuming printer search when CUPS calls it to detect printers.

Also

    if dpkg --compare-versions "$2" lt "1.5.3-3"; then
        modprobe usblp >/dev/null 2>&1 || :
    fi

should be

    if dpkg --compare-versions "$2" lt "1.5.3-0ubuntu2"; then
    ...

but this is harmless again. The execution loads the "usblp" kernel
module which is usually always loaded.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1037845

Title:
  [precise-updates] Cups 1.5.0-0ubuntu2 has incorrect postinst

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/cups/+bug/1037845/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to