forked from mirrors/nixpkgs
Build MIME database from all available packages
svn path=/nixpkgs/trunk/; revision=21076
This commit is contained in:
parent
295af6ab17
commit
99e825a42c
|
@ -59,6 +59,7 @@ sub createLinks {
|
|||
$srcFile =~ /\/nix-support$/ ||
|
||||
$srcFile =~ /\/perllocal.pod$/ ||
|
||||
$srcFile =~ /\/info\/dir$/ ||
|
||||
( $relName2 =~ /^\/share\/mime\// && !( $relName2 =~ /^\/share\/mime\/packages/ ) ) ||
|
||||
$srcFile =~ /\/log$/)
|
||||
{
|
||||
# Do nothing.
|
||||
|
@ -166,6 +167,11 @@ while (scalar(keys %postponed) > 0) {
|
|||
}
|
||||
}
|
||||
|
||||
if (-x "$out/bin/update-mime-database" && -d "$out/share/mime/packages") {
|
||||
system("$out/bin/update-mime-database -V $out/share/mime") == 0
|
||||
or die "Can't update mime-database";
|
||||
}
|
||||
|
||||
|
||||
print STDERR "created $symlinks symlinks in user environment\n";
|
||||
|
||||
|
|
Loading…
Reference in a new issue