From df5446c040b99bf2631e5da226e73a2fa82c7b15 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Wed, 22 May 2019 02:14:02 +0000 Subject: ci: support CentOS-7 Tested on an amd64 chroot built with rinse 3.4 --- ci/deps.perl | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'ci/deps.perl') diff --git a/ci/deps.perl b/ci/deps.perl index 32b0226e..faca4590 100755 --- a/ci/deps.perl +++ b/ci/deps.perl @@ -58,6 +58,8 @@ my $profiles = { my @precious; if ($^O eq 'freebsd') { @precious = qw(perl curl Socket6 IO::Compress::Gzip); +} elsif ($pkg_fmt eq 'rpm') { + @precious = qw(perl curl); } if (@precious) { @@ -168,6 +170,11 @@ if ($pkg_fmt eq 'deb') { root(qw(pkg install -y), @quiet, @pkg_install) if @pkg_install; root(qw(pkg autoremove -y), @quiet); # TODO: yum / rpm support +} elsif ($pkg_fmt eq 'rpm') { + my @quiet = $ENV{V} ? () : ('-q'); + exclude_uninstalled(\@pkg_remove); + root(qw(yum remove -y), @quiet, @pkg_remove) if @pkg_remove; + root(qw(yum install -y), @quiet, @pkg_install) if @pkg_install; } else { die "unsupported package format: $pkg_fmt\n"; } -- cgit v1.2.3-24-ge0c7