Add code to invirt-reload to de-duplicate multiple invocations. (LP: #439426)
[invirt/packages/invirt-base.git] / debian / invirt-base.postinst
index a2ae96f..73ea19b 100755 (executable)
@@ -26,7 +26,11 @@ case "$1" in
     ;;
 
     triggered)
-        invirt-reload
+        if dpkg --compare-versions "$DPKG_RUNNING_VERSION" ge '1.14.5ubuntu10~~'; then
+            invirt-reload
+        else
+            DPKG_MAINTSCRIPT_PACKAGE='' invirt-reload
+        fi
     ;;
 
     *)