3
0
Fork 0
forked from mirrors/nixpkgs

* Generically handle the case where $out/share/mime/packages or one of

its parents is a symlink.

svn path=/nixos/trunk/; revision=25776
This commit is contained in:
Eelco Dolstra 2011-02-05 06:58:15 +00:00
parent e995f317ae
commit 28e4ac1af2

View file

@ -100,7 +100,7 @@ let
# !!! Hacky, should modularise.
postBuild =
''
if [ -x $out/bin/update-mime-database -a -d $out/share/mime/packages ]; then
if [ -x $out/bin/update-mime-database -a -w $out/share/mime/packages ]; then
$out/bin/update-mime-database -V $out/share/mime
fi