blob: 51bd6a751fba2e0758984420c7eea91416cdf5f1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
pre_upgrade() {
pre_remove $*
}
pre_remove() {
compiled="/usr/share/terminfo/s/screen-256color"
if [ -e $compiled ]; then
if pacman -Qo $compiled 2>&1 | grep "No package owns" >/dev/null; then
echo -n "removing compiled terminfo..."
rm -f $compiled
echo "done."
fi
fi
compiled="/usr/share/terminfo/s/screen-256color-bce"
if [ -e $compiled ]; then
if pacman -Qo $compiled 2>&1 | grep "No package owns" >/dev/null; then
echo -n "removing compiled terminfo..."
rm -f $compiled
echo "done."
fi
fi
}
op=$1
shift
$op $*
|