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

Index: portmaster
===================================================================
--- portmaster	(révision 224747)
+++ portmaster	(copie de travail)
@@ -291,7 +291,13 @@
 			 unset -v MASTER_RB_LIST;
 			 $PM_SU_CMD /usr/bin/nice /usr/bin/make $PM_MAKE_ARGS $*; ); }

 			else
-				[ -d "$pkg" ] || continue
-				roots="$roots ${pkg#$pdb/}"
+				if [ $dep -eq 0 ]; then
+					leaves="$leaves ${pkg}"
+				else
+					roots="$roots ${pkg}"
+				fi
 			fi
