aboutsummaryrefslogtreecommitdiff
path: root/ports-mgmt/wanted-ports
diff options
context:
space:
mode:
authorMatthew Seaman <matthew@FreeBSD.org>2012-06-23 15:18:29 +0000
committerMatthew Seaman <matthew@FreeBSD.org>2012-06-23 15:18:29 +0000
commita629eef46aed43727eb8f6f1126262d8bcf3bc0e (patch)
treea59e04190a0040474f3acb2e740461370cdc8fc0 /ports-mgmt/wanted-ports
parent6265f069f598f6cba69fc8b7d8ee5c89e912921f (diff)
downloadports-a629eef46aed43727eb8f6f1126262d8bcf3bc0e.tar.gz
ports-a629eef46aed43727eb8f6f1126262d8bcf3bc0e.zip
Notes
Diffstat (limited to 'ports-mgmt/wanted-ports')
-rw-r--r--ports-mgmt/wanted-ports/Makefile2
-rw-r--r--ports-mgmt/wanted-ports/files/wanted-ports.in10
2 files changed, 3 insertions, 9 deletions
diff --git a/ports-mgmt/wanted-ports/Makefile b/ports-mgmt/wanted-ports/Makefile
index 453a376edd15..c97e4ffd6f92 100644
--- a/ports-mgmt/wanted-ports/Makefile
+++ b/ports-mgmt/wanted-ports/Makefile
@@ -7,7 +7,7 @@
# port is self-contained in the files directory.
PORTNAME= wanted-ports
-PORTVERSION= 0.1
+PORTVERSION= 0.2
#PORTREVISION is set from ${CFGFILE}
CATEGORIES= ports-mgmt
MASTER_SITES= # none
diff --git a/ports-mgmt/wanted-ports/files/wanted-ports.in b/ports-mgmt/wanted-ports/files/wanted-ports.in
index c29af3232389..3be93c465421 100644
--- a/ports-mgmt/wanted-ports/files/wanted-ports.in
+++ b/ports-mgmt/wanted-ports/files/wanted-ports.in
@@ -2,7 +2,7 @@
#
# $FreeBSD$
-# Copyright 2010 Matthew Seaman. All rights reserved.
+# Copyright 2010,2012 Matthew Seaman. All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
@@ -280,13 +280,7 @@ CONF_FILE=${WANTEDPORTSCFG:-/var/db/%%PORTNAME%%.conf}
# The currently installed version of %%PKGNAME%% -- accounting for any
# dynamic updates to PORTREVISION
-INSTALLED_PKG=$( pkg_info -Ex %%PKGNAME%% )
-
-if [ -z $INSTALLED_PKG ] ; then
- echo "${ME}: FATAL -- the package providing this script seems " \
- "not to be installed" >&2
- exit 1
-fi
+INSTALLED_PKG="%%PKGNAME%%"
#
# Handle Options -- Main Code Loop