~ubuntu-branches/ubuntu/trusty/apt/trusty

« back to all changes in this revision

Viewing changes to apt-pkg/acquire.cc

  • Committer: Package Import Robot
  • Author(s): Michael Vogt
  • Date: 2014-04-01 17:48:58 UTC
  • mfrom: (1.4.87 sid)
  • Revision ID: package-import@ubuntu.com-20140401174858-4mv29mm29zu22fn1
Tags: 1.0.1ubuntu1
merge with the debian/sid 1.0.1 version
(LP: #1302033)

Show diffs side-by-side

added added

removed removed

Lines of Context:
23
23
#include <apt-pkg/strutl.h>
24
24
#include <apt-pkg/fileutl.h>
25
25
 
 
26
#include <string>
 
27
#include <vector>
26
28
#include <iostream>
27
29
#include <sstream>
28
30
#include <stdio.h>
 
31
#include <stdlib.h>
 
32
#include <string.h>
 
33
#include <unistd.h>
29
34
 
30
35
#include <dirent.h>
31
36
#include <sys/time.h>
 
37
#include <sys/select.h>
32
38
#include <errno.h>
33
39
 
34
40
#include <apti18n.h>
468
474
pkgAcquire::Worker *pkgAcquire::WorkerStep(Worker *I)
469
475
{
470
476
   return I->NextAcquire;
471
 
};
 
477
}
472
478
                                                                        /*}}}*/
473
479
// Acquire::Clean - Cleans a directory                                  /*{{{*/
474
480
// ---------------------------------------------------------------------
520
526
// Acquire::TotalNeeded - Number of bytes to fetch                      /*{{{*/
521
527
// ---------------------------------------------------------------------
522
528
/* This is the total number of bytes needed */
523
 
unsigned long long pkgAcquire::TotalNeeded()
 
529
APT_PURE unsigned long long pkgAcquire::TotalNeeded()
524
530
{
525
531
   unsigned long long Total = 0;
526
532
   for (ItemCIterator I = ItemsBegin(); I != ItemsEnd(); ++I)
531
537
// Acquire::FetchNeeded - Number of bytes needed to get                 /*{{{*/
532
538
// ---------------------------------------------------------------------
533
539
/* This is the number of bytes that is not local */
534
 
unsigned long long pkgAcquire::FetchNeeded()
 
540
APT_PURE unsigned long long pkgAcquire::FetchNeeded()
535
541
{
536
542
   unsigned long long Total = 0;
537
543
   for (ItemCIterator I = ItemsBegin(); I != ItemsEnd(); ++I)
543
549
// Acquire::PartialPresent - Number of partial bytes we already have    /*{{{*/
544
550
// ---------------------------------------------------------------------
545
551
/* This is the number of bytes that is not local */
546
 
unsigned long long pkgAcquire::PartialPresent()
 
552
APT_PURE unsigned long long pkgAcquire::PartialPresent()
547
553
{
548
554
  unsigned long long Total = 0;
549
555
   for (ItemCIterator I = ItemsBegin(); I != ItemsEnd(); ++I)