diff options
author | David Kalnischkies <kalnischkies@gmail.com> | 2013-12-01 00:05:34 +0100 |
---|---|---|
committer | David Kalnischkies <kalnischkies@gmail.com> | 2013-12-01 15:51:33 +0100 |
commit | 5555ef9850b7e66aa02d39bb7d624fdf3e43edb2 (patch) | |
tree | 117bd20e24b1aa09bb46f7d3944ac1522cb53f6e /debian/preinst | |
parent | 5b2c6ddcc0e45c92c544032ad2bb91bdf7222d7c (diff) |
drop old /var/state to /var/lib transition artefacts
Regardless of when this transition was, it is so long ago that everyone
who would still need this has a million other problems to deal with now
so lets just drop this code.
Diffstat (limited to 'debian/preinst')
-rwxr-xr-x | debian/preinst | 32 |
1 files changed, 0 insertions, 32 deletions
diff --git a/debian/preinst b/debian/preinst deleted file mode 100755 index 985ad9b84..000000000 --- a/debian/preinst +++ /dev/null @@ -1,32 +0,0 @@ -#! /bin/sh - -set -e - -# dpkg does this for us while we are upgrading.. -#if [ "$1" = "upgrade" -a -L /var/state/apt -a -e /var/lib/apt -a ! -L /var/state/apt ] && dpkg --compare-versions "$2" ">=" "0.4.10"; then -# rm /var/state/apt -#fi - -if [ "$1" = "upgrade" -o "$1" = "install" -a "$2" != "" ]; then - if [ ! -e /var/lib/apt -a -e /var/state/apt ]; then - # upgrading from /var/state/apt using apt. - # it's probably running now so we want to ensure /var/state/apt - # is still valid afterwards. and since we're upgrading - - if [ -x /usr/bin/perl -a -d /var/state/apt -a ! -L /var/state/apt ] && - perl -e 'exit 1 if ((stat("/var/lib"))[0] != (stat("/var/state/apt"))[0])' - then - # same fs, we can mv it - mv /var/state/apt /var/lib/apt - ln -s ../lib/apt /var/state/apt - # note that this symlink (/var/state/apt) will be removed when - # dpkg finishes unpacking the apt we're about to install; this is okay - else - # scary, let's just symlink it and hope - ln -s /var/state/apt /var/lib/apt - fi - fi - touch /var/lib/apt/lists/partial/.delete-me-later || true -fi - -#DEBHELPER# |