diff options
Diffstat (limited to 'misc/porteasy')
-rw-r--r-- | misc/porteasy/src/porteasy.pl | 22 |
1 files changed, 12 insertions, 10 deletions
diff --git a/misc/porteasy/src/porteasy.pl b/misc/porteasy/src/porteasy.pl index cfcba5eef9b4..f44afce3349d 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); + } } } } |