  	\<)	build_l="${build_l}\tUpgrade $iport to $new_port\n" ;;
  	=)	build_l="${build_l}\tRe-install $iport\n" ;;
  	\>)	build_l="${build_l}\tDowngrade $iport to $new_port\n" ;;
-@@ -2982,7 +3076,12 @@
+@@ -2982,7 +3074,12 @@
  	/*)	echo '' ; no_valid_port ;;
  	*/*)	portdir=$argv ;;
  	\.)	portdir=${PWD##*/ports/} ;; # Not always $pd, could be symlink

 	# Tell safe_exit that we are done
 	pm_unlink ${DI_FILES}-e
 	sed -i -e 1s/############/%%%%%%%%%%%%/ $DI_FILES
@@ -1192,22 +1248,45 @@
 	local pkg
 	pm_v "===>>> Sorting ports by category"
 

 }
 
 delete_empty_dist_subdirs () {
@@ -1600,14 +1677,19 @@
 				unset port_ver
 			fi
 		else
