case "$1" in
remove|upgrade|deconfigure)
- perl -i.bak -ne 's%^### (BEGIN|END) invirt-dev\s*$%%m && ($skip = ($1 eq "BEGIN")); print unless $skip;' /etc/sudoers
+ [ "$1" = "remove" ] && update-inetd --disable git
+
+ perl -i.bak -ne 'print unless /^### BEGIN invirt-dev/../^### END invirt-dev/' /etc/sudoers
;;
failed-upgrade)