[Yum-devel] [yum-utils] package-graph

Pierre-Yves pingou at pingoured.fr
Fri Jan 7 14:46:44 UTC 2011


On Thu, Dec 23, 2010 at 02:07:34PM +0200, Panu Matilainen wrote:
> 
> Why are these both shown in the output? Just one of them should be visible 
> (and the other one deprecated but kept around for compatibilitys sake):
>    --show-duplicates     show all versions of packages
>    --show-dupes          show all versions of packages

This is a 2 lignes patch which I can do, which option is prefered ?
(I would go for keeping --show-duplicates)
 
> Another pile of redundancies, relevant for this discussion:
>    --tree-requires       list recursive requirements, in tree form
>    --tree-conflicts      list recursive conflicts, in tree form
>    --tree-obsoletes      list recursive obsoletes, in tree form
>    --tree-whatrequires   list recursive what reqauires, in tree form
> 
> There's already --requires, --conflicts etc, and there's --recursive too, 
> so the above should easily collapse to one option to control the output 
> format, eg --tree-requires would be '--requires --recursive --output=tree' 
> or something like that.

Should I try to look into this ?
I would replace --recursive by something like --level=[1|2|3|...|all] 
(keeping --recursive for compatility)

We would then have:
--requires/provides/conflicts --level=2 --output=tree --type=[dot|ascii]

Would this be fine ? Or should we remove --type and just play with
--output=[ascii-tree|dot-tree] ?

Regards,
Pierre


More information about the Yum-devel mailing list