  			fi
  			origin=`origin_from_pdb $port` ;;
  		esac
-@@ -3032,11 +3242,15 @@
+@@ -3032,11 +3241,15 @@
  	case "$argv" in
  	'')	echo '' ; no_valid_port ;;
  	$pd/*)	portdir=${argv#$pd/} ;;

 if [ -n "$preserve_dir" ]; then
 	rmdir $preserve_dir 2>/dev/null
 	unset preserve_dir preserve_port_files
@@ -3781,7 +4023,12 @@
 temp=`find $LOCALBASE_COMPAT -type d -empty 2>/dev/null`
 if [ -z "$temp" ] && [ -d "$LOCALBASE_COMPAT" ]; then
 	unset files

 	esac
 
 	if [ -z "$portdir" -a -z "$upg_port" ]; then
@@ -3069,7 +3282,7 @@
 
 	case "$arg2" in
 	*/*)	ro_opd=$arg2 ; ro_upg_port=`iport_from_origin $ro_opd` ;;
