Filewatcher File Search File Search
Catalog
Content Search
» » » » » kdesudo_3.4.2.3-2+b1_i386.deb » Content »
pkg://kdesudo_3.4.2.3-2+b1_i386.deb:69766/DEBIAN/  info  control  downloads

kdesudo - sudo frontend for KDE…  more info»

preinst

#! /bin/sh

set -e

case "$1" in
  upgrade)
	oldVersion=$2
	if dpkg --compare-versions $2 lt 3.4-1
	then # We are updating from before KDE4 was here
		if dpkg-divert --list /usr/bin/kdesu | grep -q "by kdesudo" 
		then
			if [ -L /usr/bin/kdesu ]
			then
				if [ "$(readlink -f /usr/bin/kdesu)" = "/usr/bin/kdesudo" ]
				then
					rm /usr/bin/kdesu
					rm /usr/share/man/man1/kdesu.1.gz
				fi
			fi
			if [ ! -e /usr/bin/kdesu ]
			then
	                	dpkg-divert --package kdesudo --rename --remove /usr/bin/kdesu
				dpkg-divert --package kdesudo --rename --remove /usr/share/man/man1/kdesu.1.gz
			fi
			
	        fi
	fi
    ;;
  *) 
     exit 0
  ;;
esac



exit 0
Results 1 - 1 of 1
Help - FTP Sites List - Software Dir.
Search over 15 billion files
© 1997-2017 FileWatcher.com