Skip to content

Commit

Permalink
Merge pull request #210 from ligangty/cf
Browse files Browse the repository at this point in the history
Fix two issues
  • Loading branch information
ligangty authored Apr 3, 2024
2 parents a669066 + 086cb81 commit 6814768
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
8 changes: 7 additions & 1 deletion charon/cache.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,18 @@
INVALIDATION_BATCH_WILDCARD = 15

DEFAULT_BUCKET_TO_DOMAIN = {
"prod-ga": "maven.repository.redhat.com",
"prod-maven-ga": "maven.repository.redhat.com",
"prod-ea": "maven.repository.redhat.com",
"prod-maven-ea": "maven.repository.redhat.com",
"stage-ga": "maven.stage.repository.redhat.com",
"stage-maven-ga": "maven.stage.repository.redhat.com",
"stage-ea": "maven.stage.repository.redhat.com",
"stage-maven-ea": "maven.stage.repository.redhat.com",
"prod-npm": "npm.registry.redhat.com",
"stage-npm": "npm.stage.registry.redhat.com"
"prod-npm-npmjs": "npm.registry.redhat.com",
"stage-npm": "npm.stage.registry.redhat.com",
"stage-npm-npmjs": "npm.stage.registry.redhat.com"
}


Expand Down
4 changes: 4 additions & 0 deletions charon/pkgs/indexing.py
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,10 @@ def __to_html_content(package_type: str, contents: List[str], folder: str) -> st
# index.html does not need to be included in html content.
if not c.endswith("index.html"):
items.append(c[len(folder):])
temp_items = []
for item in items:
temp_items.append(item[1:] if item.startswith("/") else item)
items = temp_items
else:
items.extend(contents)
items = __sort_index_items(items)
Expand Down

0 comments on commit 6814768

Please sign in to comment.