/mandos/trunk

To get this branch, use:
bzr branch http://bzr.recompile.se/loggerhead/mandos/trunk

« back to all changes in this revision

Viewing changes to debian/mandos.postinst

  • Committer: Teddy Hogeborn
  • Date: 2011-11-27 19:37:54 UTC
  • mto: (518.1.11 mandos-persistent)
  • mto: This revision was merged to the branch mainline in revision 524.
  • Revision ID: teddy@recompile.se-20111127193754-4366e18gmi11kew0
* mandos (_timedelta_to_milliseconds): Renamed to
                                       "timedelta_to_milliseconds";
                                       all callers changed.
  (Client._approved): Bug fix; renamed to "approved" without
                      underscore.  All users changed.
  (ProxyClient): Removed superfluous parens in "if" statements.
  (ClientHandler.handle): Bug fix: Emit NewRequest signal *after*
                          client is found, not before.

Show diffs side-by-side

added added

removed removed

Lines of Context:
47
47
        ;;
48
48
esac
49
49
 
50
 
# Avahi version 0.6.31-2 and older provides "avahi" (instead of
51
 
# "avahi-daemon") in its /etc/init.d script header.  To make
52
 
# insserv(8) happy, we edit our /etc/init.d script header to contain
53
 
# the correct string before the code added by dh_installinit calls
54
 
# update.rc-d, which calls insserv.
55
 
avahi_version="`dpkg-query --showformat='${Version}' --show avahi-daemon`"
56
 
if dpkg --compare-versions "$avahi_version" le 0.6.31-2; then
57
 
    sed --in-place --expression='/^### BEGIN INIT INFO$/,/^### END INIT INFO$/s/^\(# Required-\(Stop\|Start\):.*avahi\)-daemon\>/\1/g' /etc/init.d/mandos
58
 
fi
59
 
 
60
50
#DEBHELPER#
61
51
 
62
52
exit 0