~ubuntu-core-dev/update-notifier/ubuntu

« back to all changes in this revision

Viewing changes to debian/update-notifier-common.postinst

  • Committer: Steve Langasek
  • Date: 2012-04-09 18:26:56 UTC
  • Revision ID: steve.langasek@canonical.com-20120409182656-5ctfjbcpojanyyew
Fix conffile removal handling for /etc/update-motd.d/20-cpu-checker; we
were deleting the file but it was still registered in dpkg's database as
obsolete.  dpkg-maintscript-helper can help with this.

Show diffs side-by-side

added added

removed removed

Lines of Context:
10
10
fi
11
11
 
12
12
# Remove update-motd cpu-checker script
13
 
if [ "$1" = configure ] && dpkg --compare-versions "$2" le-nl "0.110.1ubuntu1"; then
14
 
    rm -f /etc/update-motd.d/20-cpu-checker
15
 
fi
 
13
dpkg-maintscript-helper rm_conffile /etc/update-motd.d/20-cpu-checker \
 
14
        0.110.1ubuntu1 -- "$@"
16
15
 
17
16
if [ "$1" = triggered ]; then
18
17
        for trigger in $2; do