Skip to content

Commit

Permalink
chore: fix a return value and a var declare issue
Browse files Browse the repository at this point in the history
Signed-off-by: Gang Li <[email protected]>
  • Loading branch information
ligangty committed Sep 27, 2024
1 parent 28902ad commit b043789
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions charon/pkgs/maven.py
Original file line number Diff line number Diff line change
Expand Up @@ -862,10 +862,10 @@ def _generate_upload_archetype_catalog(
available in the bucket. Merge (or unmerge) these catalogs and
return a boolean indicating whether the local file should be uploaded.
"""
remote = ARCHETYPE_CATALOG_FILENAME
if prefix:
remote = os.path.join(prefix, ARCHETYPE_CATALOG_FILENAME)
else:
remote = ARCHETYPE_CATALOG_FILENAME

local = os.path.join(root, ARCHETYPE_CATALOG_FILENAME)
# As the local archetype will be overwrittern later, we must keep
# a cache of the original local for multi-targets support
Expand All @@ -884,7 +884,7 @@ def _generate_upload_archetype_catalog(
logger.error(
"Error: Can not generate archtype-catalog.xml due to: %s", e
)
return 0
return False
if not existed:
__gen_all_digest_files(local)
# If there is no catalog in the bucket, just upload what we have locally
Expand Down

0 comments on commit b043789

Please sign in to comment.