~ubuntu-branches/debian/lenny/cracklib2/lenny

« back to all changes in this revision

Viewing changes to debian/cracklib-runtime.postinst

  • Committer: Bazaar Package Importer
  • Author(s): Jan Dittberner, Steve Langasek, Jan Dittberner
  • Date: 2008-10-16 21:04:24 UTC
  • mfrom: (4.1.2 intrepid)
  • Revision ID: james.westby@ubuntu.com-20081016210424-bp06uo8c6xkjabzi
Tags: 2.8.12-8lenny1
[ Steve Langasek ]
* debian/update-cracklib: don't rely on [ -nt ] to return true when
  the second file is non-existent, since this fails under dash.
  LP: #278743.

[ Jan Dittberner ]
* integrate Ubuntu bugfix
* use set -e in debian/cracklib-runtime.preinst to fix lintian warning
  maintainer-script-ignores-errors

Show diffs side-by-side

added added

removed removed

Lines of Context:
3
3
set -e
4
4
 
5
5
if [ "$1" = "configure" -a -r /etc/cracklib/cracklib.conf ]; then
6
 
    /usr/sbin/update-cracklib > /dev/null
 
6
    update-cracklib > /dev/null
7
7
 
8
8
    # /etc/cron.daily/cracklib -> cracklib-runtime transition
9
9
    if dpkg --compare-versions "$2" le "2.7-17"; then