~mvo/apt/dep8

« back to all changes in this revision

Viewing changes to apt-pkg/acquire-method.cc

  • Committer: Arch Librarian
  • Date: 2004-09-20 16:56:32 UTC
  • Revision ID: Arch-1:apt@arch.ubuntu.com%apt--MAIN--0--patch-614
Join with aliencode
Author: jgg
Date: 2001-02-20 07:03:16 GMT
Join with aliencode

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
// -*- mode: cpp; mode: fold -*-
2
2
// Description                                                          /*{{{*/
3
 
// $Id: acquire-method.cc,v 1.24 2000/01/17 07:11:49 jgg Exp $
 
3
// $Id: acquire-method.cc,v 1.25 2001/02/20 07:03:17 jgg Exp $
4
4
/* ######################################################################
5
5
 
6
6
   Acquire Method
7
7
 
8
8
   This is a skeleton class that implements most of the functionality
9
 
   of a method and some usefull functions to make method implementation
 
9
   of a method and some useful functions to make method implementation
10
10
   simpler. The methods all derive this and specialize it. The most
11
11
   complex implementation is the http method which needs to provide
12
12
   pipelining, it runs the message engine at the same time it is 
97
97
   if (Queue != 0)
98
98
   {
99
99
      snprintf(S,sizeof(S)-50,"400 URI Failure\nURI: %s\n"
100
 
               "Message: %s\n",Queue->Uri.c_str(),Err.c_str());
 
100
               "Message: %s %s\n",Queue->Uri.c_str(),Err.c_str(),
 
101
               FailExtra.c_str());
101
102
 
102
103
      // Dequeue
103
104
      FetchItem *Tmp = Queue;
108
109
   }
109
110
   else
110
111
      snprintf(S,sizeof(S)-50,"400 URI Failure\nURI: <UNKNOWN>\n"
111
 
               "Message: %s\n",Err.c_str());
 
112
               "Message: %s %s\n",Err.c_str(),
 
113
               FailExtra.c_str());
112
114
      
113
115
   // Set the transient flag 
114
116
   if (Transient == true)