diff options
author | des <des@FreeBSD.org> | 2000-09-20 03:35:48 +0800 |
---|---|---|
committer | des <des@FreeBSD.org> | 2000-09-20 03:35:48 +0800 |
commit | 99e1da6c397f137892d087fad1346bd0ada539b6 (patch) | |
tree | 02a3f9a665623338695e3e59c647e6ee658d19f6 /ports-mgmt | |
parent | bd556fe363dd8f1c955c6417207d4026715f4b81 (diff) | |
download | freebsd-ports-gnome-99e1da6c397f137892d087fad1346bd0ada539b6.tar.gz freebsd-ports-gnome-99e1da6c397f137892d087fad1346bd0ada539b6.tar.zst freebsd-ports-gnome-99e1da6c397f137892d087fad1346bd0ada539b6.zip |
Argh! forgot to fix this before adding the port.
Uninverse the meaning of two if tests.
Diffstat (limited to 'ports-mgmt')
-rw-r--r-- | ports-mgmt/porteasy/src/porteasy.pl | 22 |
1 files changed, 12 insertions, 10 deletions
diff --git a/ports-mgmt/porteasy/src/porteasy.pl b/ports-mgmt/porteasy/src/porteasy.pl index cfcba5eef9b4..f44afce3349d 100644 --- a/ports-mgmt/porteasy/src/porteasy.pl +++ b/ports-mgmt/porteasy/src/porteasy.pl @@ -598,24 +598,26 @@ MAIN:{ # Show info if ($info) { - if (@ARGV) { + if (!@ARGV) { list_installed(); - } - foreach $port (keys(%reqd)) { - if ($reqd{$port} & &REQ_EXPLICIT) { - show_port_info($port); + } else { + foreach $port (keys(%reqd)) { + if ($reqd{$port} & &REQ_EXPLICIT) { + show_port_info($port); + } } } } # Clean if ($clean) { - if (@ARGV) { + if (!@ARGV) { clean_tree(); - } - foreach $port (keys(%reqd)) { - if (!($reqd{$port} & &REQ_IMPLICIT)) { - clean_port($port); + } else { + foreach $port (keys(%reqd)) { + if (!($reqd{$port} & &REQ_IMPLICIT)) { + clean_port($port); + } } } } |