aboutsummaryrefslogtreecommitdiff
path: root/ports-mgmt/porteasy
diff options
context:
space:
mode:
authorDag-Erling Smørgrav <des@FreeBSD.org>2000-09-19 19:35:48 +0000
committerDag-Erling Smørgrav <des@FreeBSD.org>2000-09-19 19:35:48 +0000
commit991d375484cf05695851bc48717e15683f8d7c21 (patch)
treeecd563b78ac799ba68d363247fda6d557a5fdb55 /ports-mgmt/porteasy
parentf7983e4e954556f81560255c9e716e658756c1aa (diff)
downloadports-991d375484cf05695851bc48717e15683f8d7c21.tar.gz
ports-991d375484cf05695851bc48717e15683f8d7c21.zip
Notes
Diffstat (limited to 'ports-mgmt/porteasy')
-rw-r--r--ports-mgmt/porteasy/src/porteasy.pl22
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);
+ }
}
}
}