Welcome to CRUX bug tracking.
FS#593 - prt-get: isatty(1) check for quickdep to increase usability
Attached to Project:
CRUX
Opened by Anonymous Submitter - Sunday, 23 May 2010, 14:28 GMT
Last edited by Fredrik Rinnestam (frinnst) - Saturday, 17 June 2017, 18:30 GMT
Opened by Anonymous Submitter - Sunday, 23 May 2010, 14:28 GMT
Last edited by Fredrik Rinnestam (frinnst) - Saturday, 17 June 2017, 18:30 GMT
|
DetailsI added following functionality to prt-get quickdep:
when stdout is a tty, behave as it is right now, otherwise print every quick dependency on a line of it's own since it makes dependency exclusion easier, for instance: prt-get install `prt-get quickdep thepackage | grep -v ^gnome-` if you don't want to install dependencies starting with gnome. This is in my opionion closer to the KISS way of crux package management utilities. the tty stuff was done since 1. grep operates on lines and thus can't operate if the seperator is " " 2. for packages with many dependencies, many lines look ugly, thus using " " in the tty case increases readability. git diff attached. |
This task depends upon
Closed by Fredrik Rinnestam (frinnst)
Saturday, 17 June 2017, 18:30 GMT
Reason for closing: Implemented
Additional comments about closing: Patch applied to git master
Saturday, 17 June 2017, 18:30 GMT
Reason for closing: Implemented
Additional comments about closing: Patch applied to git master
prt-get install `prt-get quickdep thepackage | tr ' ' '\n' | grep -v ^gnome-`