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
Task Type Feature Request
Category tools → prt-get
Status Closed
Assigned To Johannes Winkelmann (jw)
Operating System CRUX
Severity Low
Priority Normal
Reported Version Development
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 1
  • Anonymous Submitter (2010-05-24)
Private No


I 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
Comment by Fun (fun) - Friday, 14 April 2017, 08:07 GMT
tr command could be used when needed:
prt-get install `prt-get quickdep thepackage | tr ' ' '\n' | grep -v ^gnome-`