~ubuntu-branches/ubuntu/precise/netams/precise

« back to all changes in this revision

Viewing changes to debian/netams.preinst

  • Committer: Bazaar Package Importer
  • Author(s): Alexander GQ Gerasiov
  • Date: 2009-11-26 02:08:19 UTC
  • Revision ID: james.westby@ubuntu.com-20091126020819-mfn4urmlr1id955h
Tags: 3.4.3+dfsg1-3
debian/copyright: add more details about sources of some part of the
code.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/sh
 
2
set -e
 
3
 
 
4
# I have made some packages for NeTAMS in the past.
 
5
# They had several design troubles and was not uploaded into Debian.
 
6
# But as some people may still use it, I'll better save my karma from their wrath.
 
7
case "$1" in
 
8
        install|upgrade)
 
9
                if [ "x$2" != "x" ]; then
 
10
                        if dpkg --compare-versions $2 lt 3.4.2~cvs20090103; then
 
11
                                cat >&2 << EOF
 
12
 Install aborted!
 
13
 Old incompatible installation of NeTAMS found.
 
14
 If you want to install this version - first purge old one.
 
15
 May be you will want to backup data first.
 
16
EOF
 
17
                                exit 1
 
18
                        fi
 
19
                fi
 
20
                ;;
 
21
esac
 
22
 
 
23
#DEBHELPER#