blob: 0a684a428e5cfea2735f6311c11058413b3ec0ea (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
post_install() {
DB_DIR="/var/cache/pacman-ps"
mkdir -p ${DB_DIR}
pacman -Ql | sort -u -k 2,2 - ${DB_DIR}/files.db > ${DB_DIR}/files-temp.db
rm ${DB_DIR}/files.db
mv ${DB_DIR}/files-temp.db ${DB_DIR}/files.db
printf "Created initial database at %s/files.db\n" "${DB_DIR}"
}
post_remove() {
if [ -d /var/cache/pacman-ps ]; then
rm -rf /var/cache/pacman-ps
fi
}
|