Ignore:
Timestamp:
Jan 27, 2010, 9:53:16 PM (15 years ago)
Author:
broder
Message:

Add code to invirt-reload to de-duplicate multiple invocations. (LP: #439426)

This uses the dpkg triggers mechanism to de-duplicate multiple
invocations of invirt-reload over the course of a single dpkg run.

The code is largely lifted from Ubuntu's update-initramfs.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/packages/invirt-base/debian/invirt-base.postinst

    r2009 r2941  
    2727
    2828    triggered)
    29         invirt-reload
     29        if dpkg --compare-versions "$DPKG_RUNNING_VERSION" ge '1.14.5ubuntu10~~'; then
     30            invirt-reload
     31        else
     32            DPKG_MAINTSCRIPT_PACKAGE='' invirt-reload
     33        fi
    3034    ;;
    3135
Note: See TracChangeset for help on using the changeset viewer.