Skip to content

Commit cc1a242

Browse files
authored
Merge pull request #146 from ligangty/release
Fix: wrong ignored metadata files of *-archetype-catalog.xml
2 parents 2e5209f + 05616a2 commit cc1a242

33 files changed

+43
-35
lines changed

.github/workflows/linters.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
matrix:
2020
os:
2121
- name: centos
22-
version: 8
22+
version: 7
2323
python: 3
2424
engine: docker
2525

.github/workflows/unittests.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
matrix:
1919
os:
2020
- name: centos
21-
version: 8
21+
version: 7
2222
python: 3
2323
engine: docker
2424

charon/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
"""
2-
Copyright (C) 2021 Red Hat, Inc. (https://github.com/Commonjava/charon)
2+
Copyright (C) 2022 Red Hat, Inc. (https://github.com/Commonjava/charon)
33
44
Licensed under the Apache License, Version 2.0 (the "License");
55
you may not use this file except in compliance with the License.

charon/cmd/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
"""
2-
Copyright (C) 2021 Red Hat, Inc. (https://github.com/Commonjava/charon)
2+
Copyright (C) 2022 Red Hat, Inc. (https://github.com/Commonjava/charon)
33
44
Licensed under the Apache License, Version 2.0 (the "License");
55
you may not use this file except in compliance with the License.

charon/cmd/command.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
"""
2-
Copyright (C) 2021 Red Hat, Inc. (https://github.com/Commonjava/charon)
2+
Copyright (C) 2022 Red Hat, Inc. (https://github.com/Commonjava/charon)
33
44
Licensed under the Apache License, Version 2.0 (the "License");
55
you may not use this file except in compliance with the License.

charon/config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
"""
2-
Copyright (C) 2021 Red Hat, Inc. (https://github.com/Commonjava/charon)
2+
Copyright (C) 2022 Red Hat, Inc. (https://github.com/Commonjava/charon)
33
44
Licensed under the Apache License, Version 2.0 (the "License");
55
you may not use this file except in compliance with the License.

charon/constants.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
"""
2-
Copyright (C) 2021 Red Hat, Inc. (https://github.com/Commonjava/charon)
2+
Copyright (C) 2022 Red Hat, Inc. (https://github.com/Commonjava/charon)
33
44
Licensed under the Apache License, Version 2.0 (the "License");
55
you may not use this file except in compliance with the License.

charon/pkgs/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
"""
2-
Copyright (C) 2021 Red Hat, Inc. (https://github.com/Commonjava/charon)
2+
Copyright (C) 2022 Red Hat, Inc. (https://github.com/Commonjava/charon)
33
44
Licensed under the Apache License, Version 2.0 (the "License");
55
you may not use this file except in compliance with the License.

charon/pkgs/indexing.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
"""
2-
Copyright (C) 2021 Red Hat, Inc. (https://github.com/Commonjava/charon)
2+
Copyright (C) 2022 Red Hat, Inc. (https://github.com/Commonjava/charon)
33
44
Licensed under the Apache License, Version 2.0 (the "License");
55
you may not use this file except in compliance with the License.

charon/pkgs/maven.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
"""
2-
Copyright (C) 2021 Red Hat, Inc. (https://github.com/Commonjava/charon)
2+
Copyright (C) 2022 Red Hat, Inc. (https://github.com/Commonjava/charon)
33
44
Licensed under the Apache License, Version 2.0 (the "License");
55
you may not use this file except in compliance with the License.
@@ -924,7 +924,7 @@ def __hash_decorate_metadata(path: str, metadata: str) -> List[str]:
924924

925925
def _is_ignored(filename: str, ignore_patterns: List[str]) -> bool:
926926
for ignored_name in STANDARD_GENERATED_IGNORES:
927-
if ignored_name in filename:
927+
if filename and filename.startswith(ignored_name.strip()):
928928
logger.warning("Ignoring standard generated Maven path: %s", filename)
929929
return True
930930

0 commit comments

Comments
 (0)