Trigger added, version 1.5.9-0ubuntu2 uploaded to REVU.

debian/triggers contains:
interest firmware-tools-update-firmware

debian/postinst contains:
if [ "$1" == "triggered" ]; then
    for t in $2; do
        if [ "$t" == "firmware-tools-update-firmware" ]; then
            /usr/bin/update_firmware --rpm -y
        fi
    done
fi

and BIOS payload debs debian/postinst contains:
if [ "$1" == "configure" ]; then
   dpkg-trigger firmware-tools-update-firmware
fi

and this works as expected - the update_firmware command is run only
once at the end of the dpkg transaction.

Note, this requires a  new versioned dependency on dpkg (>=
1.14.5ubuntu6) in both firmware-tools and dell-repo-tools-generated
payload debs.  This version of dpkg is only available in gutsy and
higher.  I have no automatic solution for feisty, at best we could
change the dpkg-trigger line to be || : to do nothing, and tell people
to manually run update_firmware.

-- 
add firmware-tools to Ubuntu
https://bugs.launchpad.net/bugs/163120
You received this bug notification because you are a member of Ubuntu
Bugs, which is the bug contact for Ubuntu.

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

Reply via email to