Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
Please login to access the resource
home:dirkmueller:Factory
salt
fix-version-detection-and-avoid-building-and-te...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File fix-version-detection-and-avoid-building-and-testing.patch of Package salt
From c0fae09e5a4f6997a60007d970c7c6a5614d9102 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pablo=20Su=C3=A1rez=20Hern=C3=A1ndez?= <psuarezhernandez@suse.com> Date: Wed, 19 Apr 2023 10:41:28 +0100 Subject: [PATCH] Fix version detection and avoid building and testing failures --- salt/version.py | 20 ++------------------ 1 file changed, 2 insertions(+), 18 deletions(-) diff --git a/salt/version.py b/salt/version.py index 43cb5f86f7..67719bd020 100644 --- a/salt/version.py +++ b/salt/version.py @@ -1,7 +1,6 @@ """ Set up the version of Salt """ -import argparse import operator import os import platform @@ -78,7 +77,7 @@ class SaltVersionsInfo(type): ALUMINIUM = SaltVersion("Aluminium" , info=3003, released=True) SILICON = SaltVersion("Silicon" , info=3004, released=True) PHOSPHORUS = SaltVersion("Phosphorus" , info=3005, released=True) - SULFUR = SaltVersion("Sulfur" , info=(3006, 0), released=True) + SULFUR = SaltVersion("Sulfur" , info=(3006, 0)) CHLORINE = SaltVersion("Chlorine" , info=(3007, 0)) ARGON = SaltVersion("Argon" , info=(3008, 0)) POTASSIUM = SaltVersion("Potassium" , info=(3009, 0)) @@ -922,20 +921,5 @@ def versions_report(include_salt_cloud=False, include_extensions=True): yield from info -def _parser(): - parser = argparse.ArgumentParser() - parser.add_argument( - "--next-release", help="Return the next release", action="store_true" - ) - # When pip installing we pass in other args to this script. - # This allows us to catch those args but not use them - parser.add_argument("unknown", nargs=argparse.REMAINDER) - return parser.parse_args() - - if __name__ == "__main__": - args = _parser() - if args.next_release: - print(__saltstack_version__.next_release()) - else: - print(__version__) + print(__version__) -- 2.39.2
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor