couchdb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kxepal <...@git.apache.org>
Subject [GitHub] couchdb pull request: Allow passing directories as the config sour...
Date Sun, 06 Jul 2014 07:53:48 GMT
Github user kxepal commented on a diff in the pull request:

    https://github.com/apache/couchdb/pull/257#discussion_r14574278
  
    --- Diff: src/couchdb/couch_app.erl ---
    @@ -37,7 +38,17 @@ get_ini_files(Default) ->
         {ok, [[]]} ->
             Default;
         {ok, [Values]} ->
    -        Values
    +        lists:foldl(
    +		fun (V, AccIn) ->
    +			  case file:read_file_info(V) of
    +				  {ok, #file_info{type = regular}} -> AccIn ++ [V];
    --- End diff --
    
    Order matters since otherwise we'll write all the changes to the first config in chain
and it is default.ini.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

Mime
View raw message