diff --git a/tests/os_release.pm b/tests/os_release.pm index 63816225..e82a75ab 100644 --- a/tests/os_release.pm +++ b/tests/os_release.pm @@ -50,6 +50,9 @@ sub run { my ($cannedver, $cannednum) = (split /-/, $isovar)[-2, -1]; # Get rid of the ".iso" part of the tag. $cannednum =~ s/\.iso//g; + # also get rid of the arch, which osbuild puts in here + my $arch = get_var("ARCH"); + $cannednum =~ s/\.$arch//g; # Now, we merge the fields into one expression to create the correct canned tag # that will contain both the version number and the build number. my $cannedtag = "$cannedver.$cannednum";