mirror of
https://git.centos.org/centos/centpkg.git
synced 2025-02-23 08:12:55 +00:00
Set CS10 and RHEL10 to latest
This commit is contained in:
parent
0fb26c5d52
commit
9f10a855db
1 changed files with 28 additions and 23 deletions
|
@ -252,31 +252,36 @@ class centpkgClient(cliClient):
|
||||||
self.log.info("Checking rhel-target information:")
|
self.log.info("Checking rhel-target information:")
|
||||||
stream_version = self.cmd.target.split('-')[0]
|
stream_version = self.cmd.target.split('-')[0]
|
||||||
rhel_version = centpkg.utils.stream_mapping(stream_version)
|
rhel_version = centpkg.utils.stream_mapping(stream_version)
|
||||||
try:
|
|
||||||
active_y, in_stabilization = centpkg.utils.determine_active_y_version(rhel_version, pp_api_url)
|
|
||||||
except AssertionError as e:
|
|
||||||
self.log.error(" Error: centpkg cannot determine the development phase.")
|
|
||||||
self.log.error(" Please file an issue at https://git.centos.org/centos/centpkg")
|
|
||||||
self.log.error(" Workaround: Use the --rhel-target option")
|
|
||||||
self.log.error("Exiting")
|
|
||||||
raise SystemExit(1)
|
|
||||||
divergent_branch = centpkg.utils.does_divergent_branch_exist(
|
|
||||||
self.cmd.repo_name,
|
|
||||||
rhel_version,
|
|
||||||
active_y,
|
|
||||||
rhel_dist_git,
|
|
||||||
pp_api_url,
|
|
||||||
"rpms")
|
|
||||||
|
|
||||||
# Good to know
|
# Until RHEL 10.1 is starting, set 10 to latest, by setting divergent_branch to True
|
||||||
if divergent_branch :
|
if stream_version == "c10s" or rhel_version == "rhel-10":
|
||||||
self.log.info(" a divergent branch was found.")
|
divergent_branch = True
|
||||||
else:
|
else:
|
||||||
self.log.info(" a divergent branch was not found.")
|
try:
|
||||||
if in_stabilization :
|
active_y, in_stabilization = centpkg.utils.determine_active_y_version(rhel_version, pp_api_url)
|
||||||
self.log.info(" we are in stabilization mode.")
|
except AssertionError as e:
|
||||||
else:
|
self.log.error(" Error: centpkg cannot determine the development phase.")
|
||||||
self.log.info(" we are not in stabilization mode.")
|
self.log.error(" Please file an issue at https://git.centos.org/centos/centpkg")
|
||||||
|
self.log.error(" Workaround: Use the --rhel-target option")
|
||||||
|
self.log.error("Exiting")
|
||||||
|
raise SystemExit(1)
|
||||||
|
divergent_branch = centpkg.utils.does_divergent_branch_exist(
|
||||||
|
self.cmd.repo_name,
|
||||||
|
rhel_version,
|
||||||
|
active_y,
|
||||||
|
rhel_dist_git,
|
||||||
|
pp_api_url,
|
||||||
|
"rpms")
|
||||||
|
|
||||||
|
# Good to know
|
||||||
|
if divergent_branch :
|
||||||
|
self.log.info(" a divergent branch was found.")
|
||||||
|
else:
|
||||||
|
self.log.info(" a divergent branch was not found.")
|
||||||
|
if in_stabilization :
|
||||||
|
self.log.info(" we are in stabilization mode.")
|
||||||
|
else:
|
||||||
|
self.log.info(" we are not in stabilization mode.")
|
||||||
|
|
||||||
# Update args.custom_user_metadata
|
# Update args.custom_user_metadata
|
||||||
if hasattr(self.args, 'custom_user_metadata') and self.args.custom_user_metadata:
|
if hasattr(self.args, 'custom_user_metadata') and self.args.custom_user_metadata:
|
||||||
|
|
Loading…
Add table
Reference in a new issue