From 99e1da6c397f137892d087fad1346bd0ada539b6 Mon Sep 17 00:00:00 2001 From: des Date: Tue, 19 Sep 2000 19:35:48 +0000 Subject: Argh! forgot to fix this before adding the port. Uninverse the meaning of two if tests. --- misc/porteasy/src/porteasy.pl | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) (limited to 'misc/porteasy') diff --git a/misc/porteasy/src/porteasy.pl b/misc/porteasy/src/porteasy.pl index cfcba5e..f44afce 100644 --- a/misc/porteasy/src/porteasy.pl +++ b/misc/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); + } } } } -- cgit v1.1