]> git.saurik.com Git - apt.git/commitdiff
isatty test was backwards
authorArch Librarian <arch@canonical.com>
Mon, 20 Sep 2004 17:04:09 +0000 (17:04 +0000)
committerArch Librarian <arch@canonical.com>
Mon, 20 Sep 2004 17:04:09 +0000 (17:04 +0000)
Author: mdz
Date: 2003-12-20 23:39:54 GMT
isatty test was backwards

cmdline/apt-get.cc

index 2c7c99092cea680bc705b4b4cd3ca4dd228b1e22..315352cbf45e085190674703e0b734f04460c8b4 100644 (file)
@@ -1,6 +1,6 @@
 // -*- mode: cpp; mode: fold -*-
 // Description                                                         /*{{{*/
-// $Id: apt-get.cc,v 1.146 2003/11/19 23:50:51 mdz Exp $
+// $Id: apt-get.cc,v 1.147 2003/12/20 23:39:54 mdz Exp $
 /* ######################################################################
    
    apt-get - Cover for dpkg
@@ -2468,7 +2468,7 @@ int main(int argc,const char *argv[])
    }
    
    // Deal with stdout not being a tty
-   if (isatty(STDOUT_FILENO) && _config->FindI("quiet",0) < 1)
+   if (!isatty(STDOUT_FILENO) && _config->FindI("quiet",0) < 1)
       _config->Set("quiet","1");
 
    // Setup the output streams