  
  	echo "===>>> Checking $port_dbdir"
  
-@@ -1610,14 +1726,19 @@
+@@ -1610,14 +1726,20 @@
  				unset port_ver
  			fi
  		else
 -			case `pkg_version -t $iport $port_ver` in
++			local pkg_version
 +			if [ -z "$use_pkgng" ]; then
 +				pkg_version="pkg_version"
 +			else

--- portmaster.orig	2012-01-31 03:17:17.681285114 +0100
+++ portmaster	2012-01-31 13:42:03.841298704 +0100
@@ -292,7 +292,13 @@
 			 unset -v PM_URB_LIST;
 			 $PM_SU_CMD /usr/bin/nice /usr/bin/make $PM_MAKE_ARGS $*; ); }

 		if [ -n "$deplist" ]; then
 			echo ''
 			echo "===>>> Warning: Unrecorded dependencies on ${iport}:"
@@ -2088,22 +2240,32 @@
 			continue
 		fi
 
