mirror of
https://pagure.io/fedora-qa/os-autoinst-distri-fedora.git
synced 2025-08-19 22:05:44 +00:00
Patch date as well as type for KDE upgrade metadata
For deciding whether to show a release as available for upgrade, Discover now also checks its date as well as its 'type'. If the date is in the future, even if the type is stable, it won't show it unless the allow-pre-releases flag is set. So, we need to also patch out the date. Just blanking it also works, but let's hardcode it to the start of 2025 to be a bit more realistic (in case there's ever a situation where the check passes with an empty date, but fails with a date it should pass with). Signed-off-by: Adam Williamson <awilliam@redhat.com>
This commit is contained in:
parent
2e3eede05d
commit
13cf507c8b
@ -92,8 +92,9 @@ sub run {
|
||||
# Replace "rawhide" with the Rawhide version number if we're
|
||||
# upgrading to Rawhide
|
||||
assert_script_run("sed -i 's,rawhide,$rawrel,g' /usr/share/metainfo/org.fedoraproject.fedora.metainfo.xml") if ($release eq $rawrel);
|
||||
# Now mark the release we want to upgrade to as stable
|
||||
assert_script_run("sed -i 's,version=\"$release\" type=\".*\" date=,version=\"$release\" type=\"stable\" date=,g' /usr/share/metainfo/org.fedoraproject.fedora.metainfo.xml");
|
||||
# Now mark the release we want to upgrade to as stable and
|
||||
# ensure it doesn't have a date in the future
|
||||
assert_script_run("sed -i 's,version=\"$release\" type=\".*\" date=\".*\",version=\"$release\" type=\"stable\" date=\"2025-01-01\",g' /usr/share/metainfo/org.fedoraproject.fedora.metainfo.xml");
|
||||
# Upload the modified file for debugging
|
||||
upload_logs("/usr/share/metainfo/org.fedoraproject.fedora.metainfo.xml", failok => 1);
|
||||
# Switch to the regular user
|
||||
|
Loading…
Reference in New Issue
Block a user