AnacondaRecipes / repodata-hotfixes

Changes to package metadata to fix behavior
BSD 3-Clause "New" or "Revised" License
14 stars 20 forks source link

Refactor #83

Closed jjhelmus closed 4 years ago

jjhelmus commented 4 years ago

Refactor patching of main and the testing script.
Patching is done in-place on the record object so that patches of patches are automatically applied. The final patch instructions are generated by comparing the contents of a record with a reference prior to any modification. Path instructions are only generated if these differ.

The test-hotfix.py script was modified to work from the repodata_from_packages.json file in the same manner as is done when conda index is run. The difference between the local results of patching and patched repodata.json files in the package repository are displayed for one or more subdirs.

jjhelmus commented 4 years ago

Note that there are a number of TODO still in the code. This refactor aims to produce the same repodata.json files are currently exists, bugs included. The TODO entry point out locations where the currently logic is likely producing incorrect patch instructions.