diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2011-11-04 12:06:08 -0500 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2011-11-04 12:06:08 -0500 |
commit | 1b6efb141bcf333e5c73a520e701d1de8cafcf4e (patch) | |
tree | 2c8231c62e760299a8109716eecf4647514b3315 /ubuntu/maverick/applications/tdesudo/debian/preinst | |
parent | a2c2f2ed2eaad5d897c9a00ff5d804486751e603 (diff) | |
download | tde-packaging-1b6efb141bcf333e5c73a520e701d1de8cafcf4e.tar.gz tde-packaging-1b6efb141bcf333e5c73a520e701d1de8cafcf4e.zip |
Rename kde packages to tde
Diffstat (limited to 'ubuntu/maverick/applications/tdesudo/debian/preinst')
-rw-r--r-- | ubuntu/maverick/applications/tdesudo/debian/preinst | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/ubuntu/maverick/applications/tdesudo/debian/preinst b/ubuntu/maverick/applications/tdesudo/debian/preinst new file mode 100644 index 000000000..d711fde5b --- /dev/null +++ b/ubuntu/maverick/applications/tdesudo/debian/preinst @@ -0,0 +1,29 @@ +#! /bin/sh + +set -e + +package_name=kdesudo-trinity + +if [ -z "$package_name" ]; then + print >&2 "Internal Error. Please report a bug." + exit 1; +fi + +case "$1" in + install) + dpkg-divert --package $package_name \ + --divert /opt/trinity/bin/kdesu.distrib \ + --rename /opt/trinity/bin/kdesu + ;; + upgrade) + dpkg-divert --package $package_name \ + --divert /opt/trinity/bin/kdesu.distrib \ + --rename /opt/trinity/bin/kdesu + ;; + abort-upgrade) + ;; + *) echo "$0: didn't understand being called with \`$1'" 1>&2 + exit 0;; +esac + +exit 0 |