Changeset 2966 for trunk/packages


Ignore:
Timestamp:
Jan 28, 2010, 12:24:00 AM (15 years ago)
Author:
broder
Message:

Fix invirt-base's handling of triggers.

Location:
trunk/packages/invirt-base
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/packages/invirt-base/debian/changelog

    r2941 r2966  
     1invirt-base (0.0.30) unstable; urgency=low
     2
     3  * Cleanup the handling of triggers...so that it actually works.
     4
     5 -- Evan Broder <broder@mit.edu>  Thu, 28 Jan 2010 00:22:21 -0500
     6
    17invirt-base (0.0.29) unstable; urgency=low
    28
  • trunk/packages/invirt-base/debian/invirt-base.postinst

    r2941 r2966  
    2727
    2828    triggered)
    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
     29        INVIRT_RELOAD_NOTRIGGER=y invirt-reload
    3430    ;;
    3531
  • trunk/packages/invirt-base/scripts/invirt-reload

    r2941 r2966  
    11#!/bin/bash
    22
    3 if [ "$DPKG_MAINTSCRIPT_PACKAGE" != '' ] && \
     3if [ x"$INVIRT_RELOAD_NOTRIGGER" = x ] && \
     4    [ "$DPKG_MAINTSCRIPT_PACKAGE" != '' ] && \
    45    [ $# = 0 ] && \
    56    dpkg-trigger --check-supported 2>/dev/null; then
    6     if dpkg-trigger --no-await invirt-base; then
     7    if dpkg-trigger --no-await invirt-reload; then
    78        echo "invirt-reload: deferring update (trigger activated)"
    89        exit 0
Note: See TracChangeset for help on using the changeset viewer.