repo.or.cz
/
aur-mirror.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
updated on Wed Jan 11 08:01:35 UTC 2012
[aur-mirror.git]
/
nntpgrab
/
nntpgrab.install
blob
9837f1937e0c562fd8d426f2a49645baadd62e6d
1
available() {
2
which "$1" >/dev/null 2>&1
3
}
4
5
updatemime() {
6
# Setup Menus
7
if available update-desktop-database
8
then
9
update-desktop-database -q /usr/share/applications
10
fi
11
12
# Setup MIME types
13
if available update-mime-database
14
then
15
update-mime-database /usr/share/mime >/dev/null
16
fi
17
}
18
19
post_install() {
20
updatemime
21
}
22
23
post_upgrade() {
24
updatemime
25
}
26
27
post_remove() {
28
updatemime
29
}