"sort|uniq" can be shortened to "sort -u" Patch attached. Reproducible: Always Steps to Reproduce: 1. 2. 3.
Created attachment 15632 [details, diff] shorten sort|uniq to sort -u
Created attachment 15633 [details, diff] same for /usr/bin/dep-clean The above was for /usr/bin/qpkg, now I found some more of these. This is /usr/bin/dep-clean.
Created attachment 15634 [details, diff] same for /usr/bin/gentool-package-count
Created attachment 15635 [details, diff] same for /usr/bin/revdep-rebuild
Is there a reason you want to use -u option?
"sort -u" is a lot faster. Here's a nice article about it: http://www.itworld.com/nl/unix_sys_adm/04112001/ Quote:"Large problems or easy optimization makes optimizing a solution sensible. In the case of sort -u, the latter is true (..). If you don't need extra system calls (i.e., to uniq), then avoid it."
Created attachment 15871 [details, diff] again /usr/bin/revdep-rebuild I just see uniq is called twice in a row in rev-dep-rebuild. One time is enough ;)
qpkg is now patched
revdep-rebuild is patched too
in cvs