]> git.saurik.com Git - apt.git/commitdiff
no_proxy environment variable
authorArch Librarian <arch@canonical.com>
Mon, 20 Sep 2004 16:54:54 +0000 (16:54 +0000)
committerArch Librarian <arch@canonical.com>
Mon, 20 Sep 2004 16:54:54 +0000 (16:54 +0000)
Author: jgg
Date: 1999-10-18 03:18:40 GMT
no_proxy environment variable

cmdline/acqprogress.cc
debian/changelog
methods/http.cc

index 556b8869be521b7cb54b32bb4006e5e2228f1710..2f7a9c4fcb84c57ba497e5765bd64335a2f881ce 100644 (file)
@@ -1,6 +1,6 @@
 // -*- mode: cpp; mode: fold -*-
 // Description                                                         /*{{{*/
-// $Id: acqprogress.cc,v 1.17 1999/08/04 05:37:18 jgg Exp $
+// $Id: acqprogress.cc,v 1.18 1999/10/18 03:18:40 jgg Exp $
 /* ######################################################################
 
    Acquire Progress - Command line progress meter 
@@ -123,7 +123,7 @@ void AcqTextStatus::Stop()
       return;
 
    if (Quiet <= 0)
-      cout << '\r' << BlankLine << '\r';
+      cout << '\r' << BlankLine << '\r' << flush;
    
    if (FetchedBytes != 0 && _error->PendingError() == false)
       cout << "Fetched " << SizeToStr(FetchedBytes) << "B in " <<
index 070ce3af707b4dbe596a0d5c53be7925ba52939b..0a2ef08cf097dfe76dbe539c60f29fca8f8e0b20 100644 (file)
@@ -17,6 +17,8 @@ apt (0.3.13.1) unstable; urgency=low
     event of a failure Closes: #47112
   * Retries for source archives too Closes: #47529
   * Unmounts CDROMs iff it mounted them Closes: #45299
+  * Checks for the partial directories before doing downloads Closes: #47392
+  * no_proxy environment variable (http only!) Closes: #43476
   
  -- Jason Gunthorpe <jgg@debian.org>  Fri,  3 Sep 1999 09:04:28 -0700
  
index c4a3f16295d44b1282844fd101f481aff3fd499c..34f2f1af5bebd432cf14c2e9ba4fdad11937582c 100644 (file)
@@ -1,6 +1,6 @@
 // -*- mode: cpp; mode: fold -*-
 // Description                                                         /*{{{*/
-// $Id: http.cc,v 1.38 1999/10/03 21:09:27 jgg Exp $
+// $Id: http.cc,v 1.39 1999/10/18 03:18:40 jgg Exp $
 /* ######################################################################
 
    HTTP Aquire Method - This is the HTTP aquire method for APT.
@@ -289,6 +289,27 @@ bool ServerState::Open()
    else
       Proxy = getenv("http_proxy");
    
+   // Parse no_proxy, a , seperated list of hosts
+   if (getenv("no_proxy") != 0)
+   {
+      const char *Start = getenv("no_proxy");
+      for (const char *Cur = Start; true ; Cur++)
+      {
+        if (*Cur != ',' && *Cur != 0)
+           continue;
+        if (stringcasecmp(ServerName.Host.begin(),ServerName.Host.end(),
+                          Start,Cur) == 0)
+        {
+           Proxy = "";
+           break;
+        }
+        
+        Start = Cur + 1;
+        if (*Cur == 0)
+           break;
+      }         
+   }      
+   
    // Determine what host and port to use based on the proxy settings
    int Port = 0;
    string Host;