MarkHedleyJones / dmenu-extended-plugins

Set of plugins for dmenu-extended
MIT License
3 stars 5 forks source link

Added portage support, arranged some functions. #2

Closed tux1c closed 9 years ago

tux1c commented 9 years ago

Portage (Gentoo based distros) support. Functions arranged in categories and in names (i.e. aot-get functions come always before yum functions in each category). Added u_installedPackages_portage function, which is specific to portage. (For showing package versions)

Commands are rather hacky because portage gives a lot of output which needs to be arranged. For some unkonwn reason to me (I don't really know python), regular output wouldn't work so I had to pipe it into a temporary file and then cat the file in order for it to work.

u_installedPackages_portage is needed because portage supports different versions of packages, so user has to choose the specific version he wants to uninstall. Versions can't be shown globaly because if you try to update a package it would just reinstall it (i.e. emerge www-clients/firefox-31.0, it would just reinstall firefox. while emerge www-clients/firefox would install the latest version).

MarkHedleyJones commented 9 years ago

Hey this is great. I haven't had a chance to test it but it looks like you know what you're doing. Great work.