From b31c7493a372b6b50e0b62bbbb773722aeaa795d Mon Sep 17 00:00:00 2001 From: John McQuah Date: Thu, 16 Jun 2022 16:24:08 -0400 Subject: [PATCH] prt-auf: new test in up_inst() to make use of existing packages that were not pkgadded at the time they were built. --- scripts/prt-auf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/prt-auf b/scripts/prt-auf index f79b3e8..ae56bc6 100755 --- a/scripts/prt-auf +++ b/scripts/prt-auf @@ -708,7 +708,7 @@ sub up_inst { # returns scalar references to five arrays ($opkg{test} eq "no") ? system("$mkcmd{$t}") : print "$mkcmd{$t}\n"; $status{$t} .= ( $?>>8 == 0 ) ? "build ok. " : "build failed. "; $status{$t} = ( $mkcmd{$t} =~ /skipped/ ) ? "build skipped. " : $status{$t}; - if ($status{$t} =~ /build ok/) { + if (($status{$t} =~ /build ok/) or ($mkcmd{$t} =~ /up to date/)) { $addcmd{$t} =~ s/ -u / / if (port_diff("utd",$t)<0); ($opkg{test} eq "no") ? system("$addcmd{$t}") : print "$addcmd{$t}\n"; $status{$t} .= ( $?>>8 == 0 ) ? "pkgadd ok. " : "pkgadd failed. ";