aboutsummaryrefslogtreecommitdiff
path: root/ports-mgmt
diff options
context:
space:
mode:
authorDoug Barton <dougb@FreeBSD.org>2007-02-25 08:05:22 +0000
committerDoug Barton <dougb@FreeBSD.org>2007-02-25 08:05:22 +0000
commite06c42072e0f4239c65261e649c862ae033ea7db (patch)
treed4e4dd6f287cf020fdc9403b148f7bc45981c021 /ports-mgmt
parenta8e6b40ca6ce3db7a8647d4855869b85ae79e1be (diff)
downloadports-e06c42072e0f4239c65261e649c862ae033ea7db.tar.gz
ports-e06c42072e0f4239c65261e649c862ae033ea7db.zip
Notes
Diffstat (limited to 'ports-mgmt')
-rw-r--r--ports-mgmt/portmaster/Makefile2
-rw-r--r--ports-mgmt/portmaster/files/portmaster.sh.in17
2 files changed, 9 insertions, 10 deletions
diff --git a/ports-mgmt/portmaster/Makefile b/ports-mgmt/portmaster/Makefile
index 04d480d7a7db..10e8400cfb3c 100644
--- a/ports-mgmt/portmaster/Makefile
+++ b/ports-mgmt/portmaster/Makefile
@@ -8,7 +8,7 @@
#
PORTNAME= portmaster
-PORTVERSION= 1.13
+PORTVERSION= 1.14
CATEGORIES= ports-mgmt
MASTER_SITES= # none
DISTFILES= # none
diff --git a/ports-mgmt/portmaster/files/portmaster.sh.in b/ports-mgmt/portmaster/files/portmaster.sh.in
index a71d1a2e32a3..5eacbe3d7e6e 100644
--- a/ports-mgmt/portmaster/files/portmaster.sh.in
+++ b/ports-mgmt/portmaster/files/portmaster.sh.in
@@ -1,6 +1,6 @@
#!/bin/sh
-# Local version: 1.151
+# Local version: 1.152
# $FreeBSD$
# Copyright (c) 2005-2007 Douglas Barton, All rights reserved
@@ -1191,20 +1191,19 @@ fi
# Exercised in the common case of not using -p option
case "$portdir" in
-'') case "$1" in
+'') argv=${1%/}
+ case "$argv" in
'') test -z "$UPDATE_REQ_BYS" && usage ;;
- ${pd}/*) portdir="${1#$pd/}" ;;
- /*) upg_port="${1##*/}" ;;
+ ${pd}/*) portdir="${argv#$pd/}" ;;
+ /*) upg_port="${argv##*/}" ;;
\.) portdir="${PWD##*/ports/}" ;;
- *) if [ -d "${pd}/${1}" ]; then
- portdir=$1
+ *) if [ -d "${pd}/${argv}" ]; then
+ portdir=$argv
else
- upg_port=$1
+ upg_port=$argv
fi
;;
esac
- portdir=${portdir%/}
- upg_port=${upg_port%/}
esac
case "$upg_port" in