prt-auf: treat the remove command as a string, not a list

This commit is contained in:
John McQuah 2024-03-22 00:01:26 +00:00
parent 71597add39
commit e57593ca44

View File

@ -544,7 +544,7 @@ sub uninstall {
$opkg{rargs} .= " -r $altroot"; $opkg{rargs} .= " -r $altroot";
} }
foreach my $t (@targets) { foreach my $t (@targets) {
($opkg{test} eq "no") ? system($PKGRM,$opkg{rargs},$t) : print "$PKGRM $opkg{rargs} $t\n"; ($opkg{test} eq "no") ? system("$PKGRM $opkg{rargs} $t") : print "$PKGRM $opkg{rargs} $t\n";
next if ($?>>8 != 0); next if ($?>>8 != 0);
push @removed, $t; push @removed, $t;
if (($LOCKED{$t}) and ($opkg{test} eq "no")) { port_unlock($t); } if (($LOCKED{$t}) and ($opkg{test} eq "no")) { port_unlock($t); }