Skip to content

Commit

Permalink
Merge pull request #575 from qtomlinson/qt/fix_conda_package_map_loca…
Browse files Browse the repository at this point in the history
…tion

Fix ENOENT error during harvesting Conda components
  • Loading branch information
elrayle authored May 8, 2024
2 parents 473a560 + 5b153af commit cdd518c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions providers/fetch/condaFetch.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ const FetchResult = require('../../lib/fetchResult')
class CondaFetch extends AbstractFetch {
constructor(options) {
super(options)
this.packageMapFolder = this.options.cdFileLocation
this.packageMapPrefix = this.options.cdFileLocation
this.channels = {
'anaconda-main': 'https://repo.anaconda.com/pkgs/main',
'anaconda-r': 'https://repo.anaconda.com/pkgs/r',
Expand Down Expand Up @@ -210,7 +210,7 @@ class CondaFetch extends AbstractFetch {
`${condaChannelID}-channelDataFile`,
`${condaChannelUrl}/channeldata.json`,
this.CACHE_DURATION,
`${this.packageMapFolder}/${condaChannelID}-channelDataFile.json`
`${this.packageMapPrefix}-${condaChannelID}-channelDataFile.json`
)
}

Expand All @@ -219,7 +219,7 @@ class CondaFetch extends AbstractFetch {
`${condaChannelID}-repoDataFile-${architecture}`,
`${condaChannelUrl}/${architecture}/repodata.json`,
this.CACHE_DURATION,
`${this.packageMapFolder}/${condaChannelID}-repoDataFile-${architecture}.json`
`${this.packageMapPrefix}-${condaChannelID}-repoDataFile-${architecture}.json`
)
}
}
Expand Down

0 comments on commit cdd518c

Please sign in to comment.