diff options
author | Matt Housh <jaeger@crux.ninja> | 2019-03-08 12:30:52 -0600 |
---|---|---|
committer | Matt Housh <jaeger@crux.ninja> | 2019-03-08 12:30:52 -0600 |
commit | 69c857a896d5973abbe95eababe5e6a620977190 (patch) | |
tree | 3da047bbb3924cf61f8883724b8f2d59a8a66907 | |
parent | ca0a3c3524b10994acf956e35b9e86587ccaa3c7 (diff) | |
download | prt-get-69c857a896d5973abbe95eababe5e6a620977190.tar.gz prt-get-69c857a896d5973abbe95eababe5e6a620977190.tar.xz |
Revert "FS#593 isatty(1) check for quickdep to increase usability"
This reverts commit 54dc9114702b7c83d7e47111ca2ab45faea2403c.
-rw-r--r-- | src/prtget.cpp | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/src/prtget.cpp b/src/prtget.cpp index 4401daf..89cea8d 100644 --- a/src/prtget.cpp +++ b/src/prtget.cpp @@ -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 ) { |