Hi! As a proof of concept, run (with and without the patch) smoke001.py, and see the pactest.log. This example shows that the old version is really broken (and calculates 1000^(1/2) ;-). In case of "-A/U foo1 foo2 foo3..." where foo1->foo2->... (which is quite common imho) the old sortbydeps fails. Bye, ngaba PS: You can do a time test too.