diff options
author | Yury G. Kudryashov <urkud.urkud@gmail.com> | 2010-04-14 19:26:50 +0000 |
---|---|---|
committer | Yury G. Kudryashov <urkud.urkud@gmail.com> | 2010-04-14 19:26:50 +0000 |
commit | 99e825a42c261ae59b8c281b4a6dd9690ad52244 (patch) | |
tree | af17c8bd1da367973e8c753f8f60417bcdcfd4e6 /pkgs/build-support | |
parent | 295af6ab173534e65c53fb4d2e4afff2fc8476c7 (diff) |
Build MIME database from all available packages
svn path=/nixpkgs/trunk/; revision=21076
Diffstat (limited to 'pkgs/build-support')
-rwxr-xr-x | pkgs/build-support/buildenv/builder.pl | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/pkgs/build-support/buildenv/builder.pl b/pkgs/build-support/buildenv/builder.pl index 856eca7b80be5..bb9e45b62ac3b 100755 --- a/pkgs/build-support/buildenv/builder.pl +++ b/pkgs/build-support/buildenv/builder.pl @@ -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"; |