Revert "FS#593 isatty(1) check for quickdep to increase usability"

This reverts commit 54dc911470.
This commit is contained in:
Matt Housh 2019-03-08 12:30:52 -06:00
parent ca0a3c3524
commit 69c857a896
1 changed files with 4 additions and 7 deletions

View File

@ -755,15 +755,12 @@ void PrtGet::printDepends( bool simpleListing )
const list<string>& deps = transaction.dependencies();
if ( simpleListing ) {
/* check if stdout is a tty, for package exclusion via: prt-get install `prt-get quickdep foobar | grep -v ^gnome-` */
bool const tty = isatty(1);
if ( deps.size() > 0 ) {
list<string>::const_iterator it = deps.begin();
for ( ; it != deps.end(); ++it )
cout << *it << (tty ? " " : "\n");
if (tty)
cout << endl;
for ( ; it != deps.end(); ++it ) {
cout << *it << " ";
}
cout << endl;
}
} else {
if ( deps.size() > 0 ) {