1. 12 12月, 2011 8 次提交
  2. 10 12月, 2011 5 次提交
  3. 08 12月, 2011 3 次提交
    • J
      Merge pull request #398 from drhevans/develop · 44ca9755
      Jannis Leidel 提交于
      Test and fix for subtle config override bug
      44ca9755
    • D
      Fix for subtle config override bug · 7a889d80
      David Evans 提交于
      Config keys should be normalized (i.e., have underscores replaced with
      dashes) *before* the config dictionaries are merged.
      
      Otherwise, if you set a value in a config file and via an environment
      variable both the dash separated key (from the config file) and the
      underscore separated key (from the environment variable) end up in the
      config dictionary. Usually this doesn't matter because the latter key
      comes after the former when the dictionary is iterated over. But in
      cases where the two config keys hash to the same value module the size
      of the dictionary, the order is reversed and the wrong value takes
      precedance.
      
      For instance with 'index-url' there's no problem:
      
          >>> repr({'index-url': 1, 'index_url': 2})
          "{'index-url': 1, 'index_url': 2}"
      
      But with 'no-index', the value from the config file overwrites the
      value from the environment variable:
      
          >>> repr({'no-index': 1, 'no_index': 2})
          "{'no_index': 2, 'no-index': 1}"
      7a889d80
    • D
      Test for subtle config override bug · 68e18e59
      David Evans 提交于
      For certain combinations of config keys, configuration sources with
      higher precedance fail to override lower precedance sources. For
      example, setting the environment variable PIP_NO_INDEX will not
      override a config file which sets 'no-index'.
      68e18e59
  4. 06 12月, 2011 1 次提交
  5. 04 12月, 2011 2 次提交
  6. 23 11月, 2011 1 次提交
  7. 13 11月, 2011 1 次提交
  8. 09 11月, 2011 1 次提交
  9. 25 10月, 2011 2 次提交
  10. 23 10月, 2011 9 次提交
  11. 22 10月, 2011 1 次提交
  12. 21 10月, 2011 2 次提交
  13. 16 10月, 2011 1 次提交
  14. 15 10月, 2011 2 次提交
  15. 28 9月, 2011 1 次提交