postinst is in appstream-index 0.4.0-1.
This file is a maintainer script. It is executed when installing (*inst) or removing (*rm) the package.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 | #!/bin/sh
# postinst script for appstream-index
set -e
# Update timestamps on AppStream data directories,
# so a rebuild is triggered as soon as possible.
touch -c /usr/share/app-info/xmls
touch -c /var/cache/app-info/xmls
touch -c /usr/share/app-install
exit 0
|