2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2026-10-19 10:10:33 +00:00

build(server): cover s390x Digest::SHA

This commit is contained in:
Vinícius Ferrão
2026-08-11 20:45:20 -03:00
parent 8f2c508950
commit bdfe7a4a2c
2 changed files with 7 additions and 5 deletions
+1 -1
View File
@@ -38,7 +38,7 @@ BuildArch: noarch
# Note: ifarch/ifnarch does not work for noarch package, use environment variable instead
%if %s390x
Requires: perl-IO-Socket-SSL perl-XML-Simple perl-XML-Parser
Requires: perl-IO-Socket-SSL perl-XML-Simple perl-XML-Parser perl(Digest::SHA)
%else
%if 0%{?rhel} >= 8
BuildRequires: perl-generators
@@ -22,10 +22,12 @@ sub read_file {
my $rpm_spec = read_file(
File::Spec->catfile( $repo_root, 'xCAT-server', 'xCAT-server.spec' )
);
like(
$rpm_spec,
qr/^Requires:.*\bperl\(Digest::SHA\)(?:\s|$)/m,
'the RPM package requires Digest::SHA',
my @rpm_sha_requirements =
$rpm_spec =~ /^Requires:.*\bperl\(Digest::SHA\)(?:\s|$)/mg;
is(
scalar(@rpm_sha_requirements),
2,
'both RPM architecture branches require Digest::SHA',
);
my $debian_control = read_file(