Cool! I've already one or two comments, but it does not seem to be too bad. I can review the pull request if you send one.
On Fri, Sep 5, 2014 at 10:28 PM, Sławomir Nizio <slawomir.ni...@sabayon.org> wrote: > Hello, > > There is 'equo unused' and it works, but I was thinking of making > something that works more like emerge --depclean (if I understand > correctly how it works). I have forked the git repository of Entropy and > made such a change. > > It can be found here: https://github.com/Enlik/entropy/commits/master. > > "[entropy.client] equo unused that works more like emerge --depclean > It's more like a draft. It works, it prints packages that might be > uninstalled, but several options are ignored, etc." > > to test: git clone…; cd client; equo unused > > The change is simple, but treat it as experimental (no guarantees!). I > don't know the Entropy code base well (heck, I barely do), and I didn't > spend much time on looking how things work, but anyway - what's important: > > - the dependency calculation doesn't seem to be costly! I may have > oversimplified something, though; > - it seems to work quite well in terms on what is printed (except that > maybe spm-installed packages should be treated as installed by user). > > It works this way: select all packages that are marked as being > installed by user, collect their dependencies recursively, and print > packages that are installed but not on that collection. > > I am curious on what you think. > > Fabio: maybe you would be interested in this as well. > -- Fabio Erculiani