blob: 3ffc06c5bd4c98ce10c981d8a2f0b19186af0a5f (
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
|
# Maintainer: MaurĂcio de Lima <mauricio@uaiso.org>
msg() {
local ALL_OFF="\e[1;0m"
local BOLD="\e[1;1m"
local GREEN="${BOLD}\e[1;32m"
local MESSAGE=$1
shift 1
printf "${GREEN}==>${ALL_OFF}${BOLD} ${MESSAGE}${ALL_OFF}\n" "$@" >&2
}
post_upgrade() {
if usr/bin/pacman-key -l >/dev/null 2>&1; then
usr/bin/pacman-key --populate uaiso
else
pacman-key --init
pacman-key --populate uaiso
fi
}
post_install() {
if [ -x usr/bin/pacman-key ]; then
post_upgrade
fi
}
|