Skip to content

Commit

Permalink
leapp experiment
Browse files Browse the repository at this point in the history
Signed-off-by: Daniel Diblik <[email protected]>
  • Loading branch information
danmyway committed Aug 16, 2024
1 parent 2ba594a commit 74220cc
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 7 deletions.
13 changes: 9 additions & 4 deletions src/tesar/dispatch/copr_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -157,10 +157,15 @@ def get_build_dictionary(
}
# Assign correct SOURCE_RELEASE and TARGET_RELEASE
if ARGS.package == "leapp-repository":
source_release_raw = str(distro.split("to")[0])
target_release_raw = str(distro.split("to")[1])
source_release = f"{source_release_raw[0]}.{source_release_raw[1]}"
target_release = f"{target_release_raw[0]}.{target_release_raw[1]}"
source_release_raw, target_release_raw = str(distro.split("to"))
source_release_major, *source_release_minor = source_release_raw
source_release = ".".join(
(source_release_major, "".join(source_release_minor))
)
target_release_major, *target_release_minor = target_release_raw
target_release = ".".join(
(target_release_major, "".join(target_release_minor))
)
copr_info_dict["compose"] = COMPOSE_MAPPING.get(distro).get("compose")
copr_info_dict["distro"] = COMPOSE_MAPPING.get(distro).get("distro")
copr_info_dict["source_release"] = source_release
Expand Down
6 changes: 3 additions & 3 deletions src/tesar/dispatch/dispatch_globals.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,9 @@
"distro": "rhel-8.7",
"chroot": "epel-8-x86_64",
},
"88to92": {
"compose": "RHEL-8.8.0-Nightly",
"distro": "rhel-8.8",
"810to95": {
"compose": "RHEL-8.10.0-Nightly",
"distro": "rhel-8.10",
"chroot": "epel-8-x86_64",
},
}
Expand Down

0 comments on commit 74220cc

Please sign in to comment.