diff --git a/software/csw-lib.pl b/software/csw-lib.pl index 109f95886..29646fc28 100644 --- a/software/csw-lib.pl +++ b/software/csw-lib.pl @@ -9,7 +9,7 @@ $pkg_get = -x "/opt/csw/bin/pkg-get" ? "/opt/csw/bin/pkg-get" sub update_system_install { local $update = $_[0] || $in{'update'}; -local (@rv, @newpacks); +local (@rv, @newpacks, %seen, $failed); print "",&text('csw_install', "$pkg_get -i $update"),"
\n"; $| = 1; print "
";
@@ -54,7 +54,7 @@ while(1) {
}
print "";
close($ph);
-if ($? || $failed) {
+if ($failed) {
print "$text{'csw_failed'}\n"; return ( ); } diff --git a/software/yum-lib.pl b/software/yum-lib.pl index 2fa6999f3..e543a6565 100644 --- a/software/yum-lib.pl +++ b/software/yum-lib.pl @@ -90,6 +90,7 @@ local ($name) = @_; return $name eq "apache" ? "httpd" : $name eq "dhcpd" ? "dhcp" : $name eq "mysql" ? "mysql mysql-server mysql-devel" : + $name eq "openssh" ? "openssh openssh-server" : $name eq "postgresql" ? "postgresql postgresql-libs postgresql-server" : $name; }