diff --git a/charon/cache.py b/charon/cache.py index 74406e4a..86841ead 100644 --- a/charon/cache.py +++ b/charon/cache.py @@ -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" } diff --git a/charon/pkgs/indexing.py b/charon/pkgs/indexing.py index 42faa49c..db7a8fb9 100644 --- a/charon/pkgs/indexing.py +++ b/charon/pkgs/indexing.py @@ -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)