On 04/25/12 21:02, Tim Foster wrote:
...
* allow "-F tsv" to differ from default output for zones, printing
the actual URI, rather than the cosmetic "<system repository>"
string. )

I have further comments, but -F (some other format) output can and is expected to differ from the default output. The default output is expected to be "human-readable" while all other output formats are intended for parsing. pkgrepo and other utilities that support -F already do this.

Whatever we do here, the default, "human-readable" output should generally fit in 80 columns.

However, I also agree with Brock that the same column should not have different values depending on whether -F ... is used.

Look at pkgrepo.py's usage of misc.get_listing() for a more generic way to implement this. I had intended on converting client.py to use that, but haven't got around to it yet.

So then, the right approach in my mind is to:

  * make default output not wrap in 80 columns generally speaking
    (that means don't show the proxy column in default output)

  * don't change the value of the URI column; instead use a separate
    column that contains the value you want users to see by default,
    and for -F output, show additional columns

Thanks,
-Shawn

_______________________________________________
pkg-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/pkg-discuss

Reply via email to