  }
  
  delete_empty_dist_subdirs () {
-@@ -1269,9 +1345,11 @@
+@@ -1269,9 +1346,11 @@
  	esac
  }
  

 		esac
 	done
 	exit 0
@@ -2243,7 +2408,13 @@
 			fail "No entry for $origin in $PM_INDEX"
 	fi
 

 
 	# Tell safe_exit that we are done
 	pm_unlink ${DI_FILES}-e
@@ -1203,25 +1260,45 @@
 }
 
 ports_by_category () {
