summaryrefslogtreecommitdiff
path: root/apt-pkg/acquire-worker.cc
diff options
context:
space:
mode:
authorArch Librarian <arch@canonical.com>2004-09-20 16:52:27 +0000
committerArch Librarian <arch@canonical.com>2004-09-20 16:52:27 +0000
commitc46824ce2ac7b52b644078f997ecc1ea6303b50c (patch)
treeddc72b95f0e1cd39383d2b006f41c69ec6467c43 /apt-pkg/acquire-worker.cc
parent91cb4c6b436bfddd4c4fd655e4cd4dce9073d5c4 (diff)
Hide hit for local uris
Author: jgg Date: 1999-01-20 05:11:25 GMT Hide hit for local uris
Diffstat (limited to 'apt-pkg/acquire-worker.cc')
-rw-r--r--apt-pkg/acquire-worker.cc9
1 files changed, 7 insertions, 2 deletions
diff --git a/apt-pkg/acquire-worker.cc b/apt-pkg/acquire-worker.cc
index 06a4460d1..d6ed38d4a 100644
--- a/apt-pkg/acquire-worker.cc
+++ b/apt-pkg/acquire-worker.cc
@@ -1,6 +1,6 @@
// -*- 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
@@ -257,7 +257,12 @@ bool pkgAcquire::Worker::RunMessages()
{
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);
}