Ignored missing release files
authorArch Librarian <arch@canonical.com>
Mon, 20 Sep 2004 16:52:38 +0000 (16:52 +0000)
committerArch Librarian <arch@canonical.com>
Mon, 20 Sep 2004 16:52:38 +0000 (16:52 +0000)
Author: jgg
Date: 1999-01-31 22:25:34 GMT
Ignored missing release files

apt-pkg/acquire-item.cc
apt-pkg/acquire-item.h
cmdline/acqprogress.cc

index 0883c29..e641900 100644 (file)
@@ -1,6 +1,6 @@
 // -*- mode: cpp; mode: fold -*-
 // Description                                                         /*{{{*/
-// $Id: acquire-item.cc,v 1.20 1999/01/30 08:08:54 jgg Exp $
+// $Id: acquire-item.cc,v 1.21 1999/01/31 22:25:34 jgg Exp $
 /* ######################################################################
 
    Acquire Item - Item to acquire
@@ -64,12 +64,12 @@ void pkgAcquire::Item::Failed(string Message,pkgAcquire::MethodConfig *Cnf)
          StringToBool(LookupTag(Message,"Transient-Failure"),false) == true)
       {
         Status = StatIdle;
-        Owner->Dequeue(this);
+        Dequeue();
         return;
       }
       
       Status = StatError;
-      Owner->Dequeue(this);
+      Dequeue();
    }   
 }
                                                                        /*}}}*/
@@ -329,6 +329,23 @@ string pkgAcqIndexRel::Describe()
    return Location->ReleaseURI();
 }
                                                                        /*}}}*/
+// AcqIndexRel::Failed - Silence failure messages for missing rel files        /*{{{*/
+// ---------------------------------------------------------------------
+/* */
+void pkgAcqIndexRel::Failed(string Message,pkgAcquire::MethodConfig *Cnf)
+{
+   // This is the retry counter
+   if (Cnf->LocalOnly == true || 
+       StringToBool(LookupTag(Message,"Transient-Failure"),false) == false)
+   {      
+      Status = StatIdle;
+      Dequeue();
+      return;
+   }
+   
+   Item::Failed(Message,Cnf);
+}
+                                                                       /*}}}*/
 
 // AcqArchive::AcqArchive - Constructor                                        /*{{{*/
 // ---------------------------------------------------------------------
index 8b6889c..4429b1c 100644 (file)
@@ -1,6 +1,6 @@
 // -*- mode: cpp; mode: fold -*-
 // Description                                                         /*{{{*/
-// $Id: acquire-item.h,v 1.14 1999/01/30 08:08:54 jgg Exp $
+// $Id: acquire-item.h,v 1.15 1999/01/31 22:25:34 jgg Exp $
 /* ######################################################################
 
    Acquire Item - Item to acquire
@@ -36,6 +36,7 @@ class pkgAcquire::Item
    pkgAcquire *Owner;
    inline void QueueURI(ItemDesc &Item)
                  {Owner->Enqueue(Item);};
+   inline void Dequeue() {Owner->Dequeue(this);};
    
    void Rename(string From,string To);
    
@@ -97,6 +98,7 @@ class pkgAcqIndexRel : public pkgAcquire::Item
    
    public:
    
+   virtual void Failed(string Message,pkgAcquire::MethodConfig *Cnf);
    virtual void Done(string Message,unsigned long Size,string Md5Hash);   
    virtual string Custom600Headers();
    virtual string Describe();
index 99e8fd9..7b23f30 100644 (file)
@@ -1,6 +1,6 @@
 // -*- mode: cpp; mode: fold -*-
 // Description                                                         /*{{{*/
-// $Id: acqprogress.cc,v 1.7 1999/01/27 02:48:53 jgg Exp $
+// $Id: acqprogress.cc,v 1.8 1999/01/31 22:25:34 jgg Exp $
 /* ######################################################################
 
    Acquire Progress - Command line progress meter 
@@ -93,8 +93,16 @@ void AcqTextStatus::Fail(pkgAcquire::ItemDesc &Itm)
    if (Quiet <= 0)
       cout << '\r' << BlankLine << '\r';
    
-   cout << "Err " << Itm.Description << endl;
-   cout << "  " << Itm.Owner->ErrorText << endl;
+   if (Itm.Owner->Status == pkgAcquire::Item::StatIdle)
+   {
+      cout << "Ign " << Itm.Description << endl;
+   }
+   else
+   {
+      cout << "Err " << Itm.Description << endl;
+      cout << "  " << Itm.Owner->ErrorText << endl;
+   }
+   
    Update = true;
 };
                                                                        /*}}}*/