aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/bin')
-rwxr-xr-xscripts/bin/compare-maven-version4
-rwxr-xr-xscripts/bin/tree.sh2
2 files changed, 3 insertions, 3 deletions
diff --git a/scripts/bin/compare-maven-version b/scripts/bin/compare-maven-version
index de0ab47..f98a6c7 100755
--- a/scripts/bin/compare-maven-version
+++ b/scripts/bin/compare-maven-version
@@ -94,8 +94,8 @@ parser.add_argument('--maven-version', dest='mv', action='store',
if __name__ == "__main__":
args = parser.parse_args()
- dep = MavenVersion.MavenVersion(args.dep)
- mv = MavenVersion.MavenSingleVersion(args.mv)
+ dep = MavenVersion(args.dep)
+ mv = MavenSingleVersion(args.mv)
if dep.max.version[0] != 99999999:
print(f"SLOT={dep.min.version[0]}.{dep.min.version[1]}")
diff --git a/scripts/bin/tree.sh b/scripts/bin/tree.sh
index 69dfbd6..5cec2c7 100755
--- a/scripts/bin/tree.sh
+++ b/scripts/bin/tree.sh
@@ -82,7 +82,7 @@ get_maven() {
MV=$(xmllint --xpath "/metadata/versioning/versions/version/text()"\
"${ARTIFACT_METADATA}"\
| awk "NR==${line_number}{print $1}")
- if compare-maven-version 2>&1 1>/dev/null; then
+ if compare-maven-version -h 2>/dev/null 1>/dev/null; then
TMP_SLOT=$(compare-maven-version --dep "${MV_RANGE}" --maven-version ${MV}) || continue
fi
eval $TMP_SLOT