~ubuntu-branches/ubuntu/oneiric/gnome-panel/oneiric

« back to all changes in this revision

Viewing changes to debian/gnome-panel.preinst

  • Committer: Bazaar Package Importer
  • Author(s): Sebastien Bacher, Martin Pitt
  • Date: 2010-06-23 10:26:28 UTC
  • mfrom: (1.13.7 upstream)
  • Revision ID: james.westby@ubuntu.com-20100623102628-p68n4gjw74mtv5js
Tags: 1:2.30.2-0ubuntu1
* New upstream version:
  Panel
  - Make sure that newly-created panels become unhidden 
  Notification Area Applet
  - Fix issues with old-style multiscreen setups (lp: #128735)
  Misc
  - Link the clock applet with libm 
* debian/gnome-panel.preinst: set debhelper token
* debian/patches/90_git_new_unhidden.patch:
  - dropped, the fix is in the new version

[ Martin Pitt ]
* Remove transitional code that is only relevant for upgrading from old
  Ubuntu releases to lucid:
  - Remove debian/indicator-applet.desktop, debian/add-indicator-applet.py,
    debian/fusa-applet.note.in, debian/migrate-fusa-config.py
  - debian/gnome-panel.install, debian/rules: Remove installation of above
    files.
  - Remove debian/gnome-panel.preinst, no relevant code any more
  - Remove debian/patches/20_fusa_migration_note_i18n.patch
  - Add debian/gnome-panel.preinst: Clean up indicator-applet.desktop and
    /usr/share/gconf/defaults/25_gnome_panel_indicator_applet on upgrade.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/sh
 
2
set -e
 
3
 
 
4
rm_conffile() {
 
5
  PKGNAME="$1"
 
6
  CONFFILE="$2"
 
7
 
 
8
  if [ -e "$CONFFILE" ]; then
 
9
   md5sum="`md5sum \"$CONFFILE\" | sed -e \"s/ .*//\"`"
 
10
   old_md5sum="`dpkg-query -W -f='${Conffiles}' $PKGNAME | sed -n -e \"\\\\' $CONFFILE'{s/ obsolete$//;s/.* //p}\"`"
 
11
   if [ "$md5sum" != "$old_md5sum" ]; then
 
12
     echo "Obsolete conffile $CONFFILE has been modified by you."
 
13
     echo "Saving as $CONFFILE.dpkg-bak ..."
 
14
     mv -f "$CONFFILE" "$CONFFILE".dpkg-bak
 
15
   else
 
16
     echo "Removing obsolete conffile $CONFFILE ..."
 
17
     rm -f "$CONFFILE"
 
18
   fi
 
19
 fi
 
20
}
 
21
 
 
22
if [ "$1" = install ] || [ "$1" = upgrade ] && 
 
23
    dpkg --compare-versions "$2" lt-nl "1:2.30.0-2ubuntu3"; then
 
24
    rm_conffile gnome-panel /etc/xdg/autostart/indicator-applet.desktop
 
25
    rm -f /usr/share/gconf/defaults/25_gnome_panel_indicator_applet
 
26
fi
 
27
 
 
28
#DEBHELPER#