]> git.saurik.com Git - apt.git/commitdiff
Hide hit for local uris
authorArch Librarian <arch@canonical.com>
Mon, 20 Sep 2004 16:52:27 +0000 (16:52 +0000)
committerArch Librarian <arch@canonical.com>
Mon, 20 Sep 2004 16:52:27 +0000 (16:52 +0000)
Author: jgg
Date: 1999-01-20 05:11:25 GMT
Hide hit for local uris

apt-pkg/acquire-worker.cc
apt-pkg/acquire-worker.h

index 06a4460d10d4c1611c7d00875fdf4db5b6fbb567..d6ed38d4a9e0727534c8964c5da521498d8b76a4 100644 (file)
@@ -1,6 +1,6 @@
 // -*- mode: cpp; mode: fold -*-
 // Description                                                         /*{{{*/
 // -*- mode: cpp; mode: fold -*-
 // Description                                                         /*{{{*/
-// $Id: acquire-worker.cc,v 1.16 1998/12/14 06:54:41 jgg Exp $
+// $Id: acquire-worker.cc,v 1.17 1999/01/20 05:11:25 jgg Exp $
 /* ######################################################################
 
    Acquire Worker 
 /* ######################################################################
 
    Acquire Worker 
@@ -257,7 +257,12 @@ bool pkgAcquire::Worker::RunMessages()
            {
               if (StringToBool(LookupTag(Message,"IMS-Hit"),false) == true ||
                   StringToBool(LookupTag(Message,"Alt-IMS-Hit"),false) == true)
            {
               if (StringToBool(LookupTag(Message,"IMS-Hit"),false) == true ||
                   StringToBool(LookupTag(Message,"Alt-IMS-Hit"),false) == true)
-                 Log->IMSHit(Desc);
+              {
+                 /* Hide 'hits' for local only sources - we also manage to
+                    hide gets */
+                 if (Config->LocalOnly == false)
+                    Log->IMSHit(Desc);
+              }               
               else
                  Log->Done(Desc);
            }       
               else
                  Log->Done(Desc);
            }       
index 29bdcc2996bbbb64ebd3c2280c64129fa5c6c579..aa59774d2a0d6943634323242662c419eed7293d 100644 (file)
@@ -1,6 +1,6 @@
 // -*- mode: cpp; mode: fold -*-
 // Description                                                         /*{{{*/
 // -*- mode: cpp; mode: fold -*-
 // Description                                                         /*{{{*/
-// $Id: acquire-worker.h,v 1.8 1998/12/04 21:16:48 jgg Exp $
+// $Id: acquire-worker.h,v 1.9 1999/01/20 05:11:25 jgg Exp $
 /* ######################################################################
 
    Acquire Worker - Worker process manager
 /* ######################################################################
 
    Acquire Worker - Worker process manager
@@ -36,7 +36,7 @@ class pkgAcquire::Worker
    pkgAcquireStatus *Log;
    MethodConfig *Config;
    string Access;
    pkgAcquireStatus *Log;
    MethodConfig *Config;
    string Access;
-      
+
    // This is the subprocess IPC setup
    pid_t Process;
    int InFd;
    // This is the subprocess IPC setup
    pid_t Process;
    int InFd;