Linux lhjmq-records 5.15.0-118-generic #128-Ubuntu SMP Fri Jul 5 09:28:59 UTC 2024 x86_64
Your IP : 3.149.25.26
Current Path : /var/lib/dpkg/info/ |
| Current File : //var/lib/dpkg/info/git.preinst |
#!/bin/sh
set -e
# Automatically added by dh_installdeb/13.6ubuntu1
dpkg-maintscript-helper rm_conffile /etc/bash_completion.d/git 1:1.8.0-1\~ -- "$@"
# End automatically added section
# /var/cache/git/ -> /var/lib/git/ transition
if test "$1" = upgrade &&
dpkg --compare-versions "$2" lt-nl '1:1.8.4~rc0-1'; then
mkdir -m 755 -p /var/lib/git
(
cd /var/lib/git
for target in ../../cache/git/*; do
if ! test -L "$target" && ! test -e "$target"; then
continue
fi
link=${target#../../cache/git/}
if ! test -L "$link" && ! test -e "$link"; then
ln -s "$target" "$link"
fi
done
)
fi
# A previous version of the /var/lib/git/ transition code
# left behind a symlink '/var/lib/git/*' -> '../../cache/git/*'.
if test "$1" = upgrade &&
dpkg --compare-versions "$2" eq '1:1.8.4~rc0-1' &&
test -L '/var/lib/git/*'; then
target=$(readlink '/var/lib/git/*')
if test "$target" = '../../cache/git/*'; then
rm -f '/var/lib/git/*'
fi
fi
|