File: apt-file.postinst

package info (click to toggle)
apt-file 3.1.4
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 660 kB
  • sloc: perl: 736; python: 132; sh: 89; makefile: 39
file content (18 lines) | stat: -rw-r--r-- 378 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/sh
set -e

#DEBHELPER#

if [ "$1" != configure ]; then
	exit 0
fi

if [ -d /var/cache/apt/apt-file ]; then
	echo "Discarding old apt-file cache, please run \"apt update\""
	rm -fr /var/cache/apt/apt-file/
fi

if /usr/share/apt-file/is-cache-empty; then
	echo "The system-wide cache is empty. You may want to run 'apt-file update'"
	echo "as root to update the cache."
fi