Author: eelco
Date: Mon Mar 19 18:07:28 2012
New Revision: 33270
URL: https://nixos.org/websvn/nix/?rev=33270&sc=1
Log:
* Don't use replaceChars. It's slow.
Modified:
nixos/trunk/modules/system/upstart/upstart.nix
Modified: nixos/trunk/modules/system/upstart/upstart.nix
==============================================================================
--- nixos/trunk/modules/system/upstart/upstart.nix Mon Mar 19 18:07:05
2012 (r33269)
+++ nixos/trunk/modules/system/upstart/upstart.nix Mon Mar 19 18:07:28
2012 (r33270)
@@ -417,9 +417,7 @@
config = {
# The default name is the name extracted from the attribute path.
- name = mkDefaultValue (
- replaceChars ["<" ">" "*"] ["_" "_" "_name_"] name
- );
+ name = mkDefaultValue name;
# Default path for Upstart jobs. Should be quite minimal.
path =
_______________________________________________
nix-commits mailing list
[email protected]
http://lists.science.uu.nl/mailman/listinfo/nix-commits