Author: eelco
Date: Sat Feb  5 06:58:15 2011
New Revision: 25776
URL: https://svn.nixos.org/websvn/nix/?rev=25776&sc=1

Log:
* Generically handle the case where $out/share/mime/packages or one of
  its parents is a symlink.

Modified:
   nixos/trunk/modules/config/system-path.nix

Modified: nixos/trunk/modules/config/system-path.nix
==============================================================================
--- nixos/trunk/modules/config/system-path.nix  Fri Feb  4 16:58:47 2011        
(r25775)
+++ nixos/trunk/modules/config/system-path.nix  Sat Feb  5 06:58:15 2011        
(r25776)
@@ -100,7 +100,7 @@
           # !!! 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
 
_______________________________________________
nix-commits mailing list
[email protected]
http://mail.cs.uu.nl/mailman/listinfo/nix-commits

Reply via email to