File: gnome-robots.postinst

package info (click to toggle)
gnome-robots 1%3A41.2-2
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 3,500 kB
  • sloc: xml: 97; makefile: 25; sh: 7
file content (13 lines) | stat: -rw-r--r-- 311 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
#! /bin/sh
set -e

# Clean up old scores files. They are no longer stored system wide
# but in the user's home directory.
if dpkg --compare-versions "$2" lt-nl "1:3.18.1-2" ; then
	rm -f /var/games/gnobots2.*.scores
	if [ -d /var/games ] ; then
		rmdir --ignore-fail-on-non-empty /var/games
	fi
fi

#DEBHELPER#