~ubuntu-branches/ubuntu/oneiric/indicator-weather/oneiric

« back to all changes in this revision

Viewing changes to debian/postinst

  • Committer: Andrew Starr-Bochicchio
  • Date: 2011-04-12 03:12:10 UTC
  • Revision ID: a.starr.b@gmail.com-20110412031210-50p3j61yauywkbmj
Tags: 11.04.10+repack-0ubuntu2
debian/postinst: Test to make sure file doesn't already
exist before creating link. (LP: #758323)

Show diffs side-by-side

added added

removed removed

Lines of Context:
9
9
xdg-icon-resource install --theme hicolor --novendor --size 22 /usr/share/indicator-weather/media/icon_connection_error.png weather-indicator-error
10
10
 
11
11
#Fix for incomplete icon themes
12
 
ln  -s /usr/share/icons/gnome/22x22/status/weather-few-clouds.png /usr/share/icons/gnome/22x22/status/weather-clouds.png
13
 
ln -s /usr/share/icons/gnome/22x22/status/weather-few-clouds-night.png /usr/share/icons/gnome/22x22/status/weather-clouds-night.png
14
 
gtk-update-icon-cache /usr/share/icons/gnome/
 
12
if [ ! -e "/usr/share/icons/gnome/22x22/status/weather-clouds.png" ]; then
 
13
    ln  -s /usr/share/icons/gnome/22x22/status/weather-few-clouds.png /usr/share/icons/gnome/22x22/status/weather-clouds.png
 
14
    ln -s /usr/share/icons/gnome/22x22/status/weather-clouds-night.png /usr/share/icons/gnome/22x22/status/weather-clouds-night.png
 
15
    gtk-update-icon-cache /usr/share/icons/gnome/
 
16
else
 
17
    exit 0
 
18
fi