From 28e4ac1af230d3252fef6769d194a876a020cb0b Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Sat, 5 Feb 2011 06:58:15 +0000 Subject: [PATCH] * Generically handle the case where $out/share/mime/packages or one of its parents is a symlink. svn path=/nixos/trunk/; revision=25776 --- modules/config/system-path.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/config/system-path.nix b/modules/config/system-path.nix index 80602468869..26685ae15f4 100644 --- a/modules/config/system-path.nix +++ b/modules/config/system-path.nix @@ -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