Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master' into add-time-to-http-error
Browse files Browse the repository at this point in the history
  • Loading branch information
kalefranz committed Nov 24, 2016
2 parents 95a8574 + 8c92cc9 commit 9b2d0e0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions conda/gateways/disk/read.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,14 +46,14 @@ def collect_all_info_for_package(extracted_package_directory):
info_dir = join(extracted_package_directory, 'info')

files_path = join(extracted_package_directory, 'info', 'files')
file_json_path = join(extracted_package_directory, 'info', 'files.json')
file_json_path = join(extracted_package_directory, 'info', 'paths.json')

if isfile(file_json_path):
with open(file_json_path) as file_json:
data = json.load(file_json)
if data.get('paths_version') != 1:
raise CondaUpgradeError("""The current version of conda is too old to install this
package. (This version only supports files.json schema version 1.) Please update conda to install
package. (This version only supports paths.json schema version 1.) Please update conda to install
this package.""")

paths = (PathInfoV1(**f) for f in data['paths'])
Expand Down
2 changes: 1 addition & 1 deletion conda/models/package_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ class NoarchInfo(Entity):
class PathType(Enum):
"""
Refers to if the file in question is hard linked or soft linked. Originally designed to be used
in files.json
in paths.json
"""
hardlink = 'hardlink'
softlink = 'softlink'
Expand Down

0 comments on commit 9b2d0e0

Please sign in to comment.