summaryrefslogtreecommitdiffstats
path: root/abs/extra/opera/opera.install
blob: 385bcb4d0ffc918f24627773c7cf69abe150f9ff (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
28
29
available()
{
	which "$1" >/dev/null 2>&1
}

post_install() {
if available update-mime-database
then
	update-mime-database /usr/share/mime >/dev/null
fi

if available update-desktop-database
then
	update-desktop-database -q /usr/share/applications
fi

if available gtk-update-icon-cache
then
	gtk-update-icon-cache -q /usr/share/icons/hicolor
fi
}

post_upgrade() {
	post_install
}

post_remove() {
	post_install
}