apt: apt-pkg/acquire-item.h Source File

apt 3.1.4 commandline package manager

acquire-item.h
Go to the documentation of this file.
1// -*- mode: cpp; mode: fold -*-
2// Description /*{{{*/
3/* ######################################################################
4
5 Acquire Item - Item to acquire
6
7 When an item is instantiated it will add it self to the local list in
8 the Owner Acquire class. Derived classes will then call QueueURI to
9 register all the URI's they wish to fetch at the initial moment.
10
11 Three item classes are provided to provide functionality for
12 downloading of Index, Translation and Packages files.
13
14 A Archive class is provided for downloading .deb files. It does Hash
15 checking and source location as well as a retry algorithm.
16
17 ##################################################################### */
18 /*}}}*/
19#ifndef PKGLIB_ACQUIRE_ITEM_H
20#define PKGLIB_ACQUIRE_ITEM_H
21
22#include <apt-pkg/acquire.h>
23#include <apt-pkg/hashes.h>
24#include <apt-pkg/indexfile.h>
25#include <apt-pkg/pkgcache.h>
26#include <apt-pkg/weakptr.h>
27
28#include <map>
29#include <string>
30#include <unordered_map>
31#include <vector>
32
33
39
40class pkgRecords;
41class pkgSourceList;
42class pkgAcqMetaClearSig;
43class pkgAcqIndexMergeDiffs;
44class metaIndex;
45
46 class APT_PUBLIC pkgAcquire::Item : public WeakPointable /*{{{*/
59{
60 public:
61
63 enum ItemState
64 {
66 StatIdle,
67
69 StatFetching,
70
72 StatDone,
73
77 StatError,
78
82 StatAuthError,
83
87 StatTransientNetworkError,
88 } Status;
89
93 std::string ErrorText;
94
96 unsigned long long FileSize;
97
99 unsigned long long PartialSize;
100
104 std::string ActiveSubprocess;
105
113 unsigned long ID;
114
119 bool Complete;
120
126 bool Local;
127
128 std::string UsedMirror;
129
138 unsigned int QueueCounter;
139
148 unsigned int ExpectedAdditionalItems;
149
153 std::string DestFile;
154
156 unsigned int Retries;
157
171 virtual void Failed(std::string const &Message,pkgAcquire::MethodConfig const * const Cnf);
172 APT_HIDDEN void FailMessage(std::string const &Message);
173
193 virtual bool VerifyDone(std::string const &Message,
194 pkgAcquire::MethodConfig const * const Cnf);
195
214 virtual void Done(std::string const &Message, HashStringList const &Hashes,
215 pkgAcquire::MethodConfig const *const Cnf);
216
226 virtual void Start(std::string const &Message, unsigned long long const Size);
227
236 virtual std::string Custom600Headers() const;
237 // this is more a hack than a proper external interface, hence hidden
238 APT_HIDDEN std::unordered_map<std::string, std::string> &ModifyCustomFields();
239 // this isn't the super nicest interface either…
240 APT_HIDDEN bool PopAlternativeURI(std::string &NewURI);
241 APT_HIDDEN bool IsGoodAlternativeURI(std::string const &AltUri) const;
242 APT_HIDDEN void PushAlternativeURI(std::string &&NewURI, std::unordered_map<std::string, std::string> &&fields, bool const at_the_back);
243 APT_HIDDEN void RemoveAlternativeSite(std::string const &AltUri);
244
249 virtual std::string DescURI() const = 0;
254 virtual std::string ShortDesc() const;
255
257 virtual void Finished();
258
260 virtual HashStringList GetExpectedHashes() const = 0;
262 std::string HashSum() const;
263
270 virtual bool HashesRequired() const { return true; }
271
273 pkgAcquire *GetOwner() const;
274 pkgAcquire::ItemDesc &GetItemDesc();
275
277 virtual bool IsTrusted() const;
278
283 void SetActiveSubprocess(std::string const &subprocess);
284
293 explicit Item(pkgAcquire * const Owner);
294
298 virtual ~Item();
299
300 bool APT_HIDDEN IsRedirectionLoop(std::string const &NewURI);
302 int APT_HIDDEN Priority();
303
305 void APT_HIDDEN FetchAfter(time_point FetchAfter);
306 time_point APT_HIDDEN FetchAfter();
307
308 protected:
310 pkgAcquire * const Owner;
311
313 pkgAcquire::ItemDesc Desc;
314
315 enum RenameOnErrorState {
316 HashSumMismatch,
317 SizeMismatch,
318 InvalidFormat,
319 SignatureError,
320 NotClearsigned,
321 MaximumSizeExceeded,
322 PDiffError,
323 };
324
329 bool RenameOnError(RenameOnErrorState const state);
330
341 virtual bool QueueURI(ItemDesc &Item);
342
344 void Dequeue();
345
355 bool Rename(std::string const &From, std::string const &To);
356
358 virtual std::string GetFinalFilename() const;
359
360 private:
361 class Private;
362 Private * const d;
363
364 friend class pkgAcqMetaBase;
365 friend class pkgAcqMetaClearSig;
366};
367 /*}}}*/
368 class APT_HIDDEN pkgAcqTransactionItem: public pkgAcquire::Item /*{{{*/
370{
371 void * const d;
372 protected:
373 HashStringList GetExpectedHashesFor(std::string const &MetaKey) const;
374
375 bool QueueURI(pkgAcquire::ItemDesc &Item) override;
376
377 public:
378 IndexTarget const Target;
379
381 std::string PartialFile;
382
384 pkgAcqMetaClearSig * const TransactionManager;
385
386 enum TransactionStates {
387 TransactionStarted,
388 TransactionCommit,
389 TransactionAbort,
390 };
391 virtual bool TransactionState(TransactionStates const state);
392
393 [[nodiscard]] std::string DescURI() const override { return Target.URI; }
394 [[nodiscard]] HashStringList GetExpectedHashes() const override;
395 [[nodiscard]] virtual std::string GetMetaKey() const;
396 [[nodiscard]] bool HashesRequired() const override;
397 [[nodiscard]] virtual bool AcquireByHash() const;
398
399 pkgAcqTransactionItem(pkgAcquire * const Owner, pkgAcqMetaClearSig * const TransactionManager, IndexTarget const &Target) APT_NONNULL(2, 3);
400 ~pkgAcqTransactionItem() override;
401
402 friend class pkgAcqMetaBase;
403 friend class pkgAcqMetaClearSig;
404};
405 /*}}}*/
406 class APT_HIDDEN pkgAcqMetaBase : public pkgAcqTransactionItem /*{{{*/
408{
409 void * const d;
410 protected:
411 std::vector<pkgAcqTransactionItem*> Transaction;
412
415 bool AuthPass;
416
426 bool CheckDownloadDone(pkgAcqTransactionItem * const I, const std::string &Message, HashStringList const &Hashes) const;
427
429 void QueueForSignatureVerify(pkgAcqTransactionItem * const I, std::string const &File, std::string const &Signature);
430
431 [[nodiscard]] std::string Custom600Headers() const override;
432
443 bool CheckAuthDone(std::string const &Message, pkgAcquire::MethodConfig const *const Cnf);
444
446 bool CheckStopAuthentication(pkgAcquire::Item * const I, const std::string &Message);
447
453 bool VerifyVendor(std::string const &Message);
454
455 bool TransactionState(TransactionStates state) override;
456
457 public:
458 // This refers more to the Transaction-Manager than the actual file
459 bool IMSHit;
460 TransactionStates State;
461 std::string BaseURI;
462
463 bool QueueURI(pkgAcquire::ItemDesc &Item) override;
464 [[nodiscard]] HashStringList GetExpectedHashes() const override;
465 [[nodiscard]] bool HashesRequired() const override;
466
467 // transaction code
468 void Add(pkgAcqTransactionItem * const I);
469 void AbortTransaction();
470 bool TransactionHasError() const;
471 void CommitTransaction();
472
475 void TransactionStageCopy(pkgAcqTransactionItem * const I,
476 const std::string &From,
477 const std::string &To);
480 void TransactionStageRemoval(pkgAcqTransactionItem * const I, const std::string &FinalFile);
481
483 [[nodiscard]] std::string GetFinalFilename() const override;
484
485 pkgAcqMetaBase(pkgAcquire * const Owner, pkgAcqMetaClearSig * const TransactionManager,
486 IndexTarget const &DataTarget) APT_NONNULL(2, 3);
487 ~pkgAcqMetaBase() override;
488};
489 /*}}}*/
500 class APT_HIDDEN pkgAcqMetaIndex : public pkgAcqMetaBase
501{
502 void * const d;
503 protected:
504 IndexTarget const DetachedSigTarget;
505
507 void Init(std::string const &URIDesc, std::string const &ShortDesc);
508
509 public:
510 [[nodiscard]] std::string DescURI() const override;
511
512 // Specialized action members
513 void Failed(std::string const &Message, pkgAcquire::MethodConfig const *Cnf) override;
514 void Done(std::string const &Message, HashStringList const &Hashes,
515 pkgAcquire::MethodConfig const *Cnf) override;
516
518 pkgAcqMetaIndex(pkgAcquire * const Owner, pkgAcqMetaClearSig * const TransactionManager,
519 IndexTarget const &DataTarget, IndexTarget const &DetachedSigTarget) APT_NONNULL(2, 3);
520 ~pkgAcqMetaIndex() override;
521
522 friend class pkgAcqMetaSig;
523};
524 /*}}}*/
533 class APT_HIDDEN pkgAcqMetaSig final : public pkgAcqTransactionItem
534{
535 void * const d;
536
537 pkgAcqMetaIndex * const MetaIndex;
538
540 std::string MetaIndexFileSignature;
541
542 protected:
543
545 [[nodiscard]] std::string GetFinalFilename() const override;
546
547 public:
548 [[nodiscard]] bool HashesRequired() const override { return false; }
549
550 // Specialized action members
551 void Failed(std::string const &Message, pkgAcquire::MethodConfig const *Cnf) override;
552 void Done(std::string const &Message, HashStringList const &Hashes,
553 pkgAcquire::MethodConfig const *Cnf) override;
554 [[nodiscard]] std::string Custom600Headers() const override;
555
557 pkgAcqMetaSig(pkgAcquire * const Owner, pkgAcqMetaClearSig * const TransactionManager,
558 IndexTarget const &Target, pkgAcqMetaIndex * const MetaIndex) APT_NONNULL(2, 3, 5);
559 ~pkgAcqMetaSig() override;
560};
561 /*}}}*/
563 class APT_HIDDEN pkgAcqMetaClearSig final : public pkgAcqMetaIndex
564{
565 void * const d;
566 IndexTarget const DetachedDataTarget;
567
568 public:
570 metaIndex *MetaIndexParser;
571 metaIndex *LastMetaIndexParser;
572
573 void Failed(std::string const &Message, pkgAcquire::MethodConfig const *Cnf) override;
574 [[nodiscard]] std::string Custom600Headers() const override;
575 bool VerifyDone(std::string const &Message, pkgAcquire::MethodConfig const *Cnf) override;
576 void Done(std::string const &Message, HashStringList const &Hashes,
577 pkgAcquire::MethodConfig const *Cnf) override;
578 void Finished() override;
579
588 void QueueIndexes(bool const verify);
589
591 pkgAcqMetaClearSig(pkgAcquire * const Owner,
592 IndexTarget const &ClearsignedTarget,
593 IndexTarget const &DetachedDataTarget,
594 IndexTarget const &DetachedSigTarget,
595 metaIndex * const MetaIndexParser);
596 ~pkgAcqMetaClearSig() override;
597};
598 /*}}}*/
600 class APT_HIDDEN pkgAcqBaseIndex : public pkgAcqTransactionItem
601{
602 void * const d;
603
604 public:
606 [[nodiscard]] std::string GetFinalFilename() const override;
607 void Failed(std::string const &Message, pkgAcquire::MethodConfig const *Cnf) override;
608
609 pkgAcqBaseIndex(pkgAcquire * const Owner, pkgAcqMetaClearSig * const TransactionManager,
610 IndexTarget const &Target) APT_NONNULL(2, 3);
611 ~pkgAcqBaseIndex() override;
612};
613 /*}}}*/
621 class APT_HIDDEN pkgAcqIndex : public pkgAcqBaseIndex
622{
623 void * const d;
624
625 protected:
626
632 enum AllStages {
633 STAGE_DOWNLOAD,
634 STAGE_DECOMPRESS_AND_VERIFY,
635 };
636 AllStages Stage;
637
639 void StageDownloadDone(std::string const &Message);
640
644 void StageDecompressDone();
645
649 std::string EraseFileName;
650
654 std::string CompressionExtensions;
655
657 std::string CurrentCompressionExtension;
658
660 void InitByHashIfNeeded();
661
663 [[nodiscard]] std::string GetFinalFilename() const override;
664
665 bool TransactionState(TransactionStates state) override;
666
667 public:
668 // Specialized action members
669 void Failed(std::string const &Message, pkgAcquire::MethodConfig const *Cnf) override;
670 void Done(std::string const &Message, HashStringList const &Hashes,
671 pkgAcquire::MethodConfig const *Cnf) override;
672 [[nodiscard]] std::string Custom600Headers() const override;
673 [[nodiscard]] std::string DescURI() const override { return Desc.URI; };
674 [[nodiscard]] std::string GetMetaKey() const override;
675
676 pkgAcqIndex(pkgAcquire * const Owner, pkgAcqMetaClearSig * const TransactionManager,
677 IndexTarget const &Target, bool const Derived = false) APT_NONNULL(2, 3);
678 ~pkgAcqIndex() override;
679
680 protected:
681 APT_HIDDEN void Init(std::string const &URI, std::string const &URIDesc,
682 std::string const &ShortDesc);
683 APT_HIDDEN bool CommonFailed(std::string const &TargetURI,
684 std::string const &Message, pkgAcquire::MethodConfig const *const Cnf);
685};
686 /*}}}*/
687struct APT_HIDDEN DiffInfo { /*{{{*/
689 std::string file;
690
692 HashStringList result_hashes;
693
695 HashStringList patch_hashes;
696
698 HashStringList download_hashes;
699};
700 /*}}}*/
710 class APT_HIDDEN pkgAcqDiffIndex final : public pkgAcqIndex
711{
712 void * const d;
713 std::vector<pkgAcqIndexMergeDiffs*> * diffs;
714 std::vector<DiffInfo> available_patches;
715 bool pdiff_merge;
716
717 protected:
719 bool Debug;
720
722 [[nodiscard]] std::string GetFinalFilename() const override;
723
724 bool QueueURI(pkgAcquire::ItemDesc &Item) override;
725
726 bool TransactionState(TransactionStates state) override;
727
728 public:
729 // Specialized action members
730 void Failed(std::string const &Message, pkgAcquire::MethodConfig const *Cnf) override;
731 bool VerifyDone(std::string const &Message, pkgAcquire::MethodConfig const *Cnf) override;
732 void Done(std::string const &Message, HashStringList const &Hashes,
733 pkgAcquire::MethodConfig const *Cnf) override;
734 [[nodiscard]] std::string DescURI() const override { return Target.URI + "Index"; };
735 [[nodiscard]] std::string GetMetaKey() const override;
736
747 bool ParseDiffIndex(std::string const &IndexDiffFile);
748
759 pkgAcqDiffIndex(pkgAcquire * const Owner, pkgAcqMetaClearSig * const TransactionManager,
760 IndexTarget const &Target) APT_NONNULL(2, 3);
761 ~pkgAcqDiffIndex() override;
762 private:
763 APT_HIDDEN void QueueOnIMSHit() const;
764};
765 /*}}}*/
777 class APT_HIDDEN pkgAcqIndexMergeDiffs final : public pkgAcqBaseIndex
778{
779 protected:
780
784 bool Debug;
785
787 struct DiffInfo const patch;
788
790 std::vector<pkgAcqIndexMergeDiffs*> const * const allPatches;
791
793 enum DiffState
794 {
796 StateFetchDiff,
797
799 StateApplyDiff,
800
802 StateDoneDiff,
803
805 StateErrorDiff
806 } State;
807
808 public:
814 void Failed(std::string const &Message, pkgAcquire::MethodConfig const *Cnf) override;
815 void Done(std::string const &Message, HashStringList const &Hashes,
816 pkgAcquire::MethodConfig const *Cnf) override;
817 [[nodiscard]] std::string Custom600Headers() const override;
818 [[nodiscard]] std::string DescURI() const override { return Target.URI + "Index"; };
819 [[nodiscard]] HashStringList GetExpectedHashes() const override;
820 [[nodiscard]] bool HashesRequired() const override;
821 [[nodiscard]] bool AcquireByHash() const override;
822
835 pkgAcqIndexMergeDiffs(pkgAcquire *const Owner, pkgAcqMetaClearSig *const TransactionManager,
836 IndexTarget const &Target, DiffInfo const &patch,
837 std::vector<pkgAcqIndexMergeDiffs *> const *const allPatches) APT_NONNULL(2, 3, 6);
838 ~pkgAcqIndexMergeDiffs() override;
839};
840 /*}}}*/
852 class APT_HIDDEN pkgAcqIndexDiffs final : public pkgAcqBaseIndex
853{
854 private:
855
865 APT_HIDDEN bool QueueNextDiff();
866
878 APT_HIDDEN void Finish(bool const allDone=false);
879
880 protected:
881
885 bool Debug;
886
895 std::vector<DiffInfo> available_patches;
896
898 enum DiffState
899 {
901 StateFetchDiff,
902
904 StateApplyDiff
905 } State;
906
907 public:
908
914 void Failed(std::string const &Message, pkgAcquire::MethodConfig const *Cnf) override;
915
916 void Done(std::string const &Message, HashStringList const &Hashes,
917 pkgAcquire::MethodConfig const * Cnf) override;
918 [[nodiscard]] std::string Custom600Headers() const override;
919 [[nodiscard]] std::string DescURI() const override { return Target.URI + "IndexDiffs"; };
920 [[nodiscard]] HashStringList GetExpectedHashes() const override;
921 [[nodiscard]] bool HashesRequired() const override;
922 [[nodiscard]] bool AcquireByHash() const override;
923
937 pkgAcqIndexDiffs(pkgAcquire *const Owner, pkgAcqMetaClearSig *const TransactionManager,
938 IndexTarget const &Target,
939 std::vector<DiffInfo> const &diffs = std::vector<DiffInfo>()) APT_NONNULL(2, 3);
940 ~pkgAcqIndexDiffs() override;
941};
942 /*}}}*/
948class APT_PUBLIC pkgAcqArchive : public pkgAcquire::Item
949{
950 void * const d;
951
952 bool LocalSource;
953 HashStringList ExpectedHashes;
954
955 protected:
957 pkgCache::VerIterator Version;
958
962 pkgSourceList *Sources;
963
967 pkgRecords *Recs;
968
972 std::string &StoreFilename;
973
977 bool Trusted;
978
980 bool QueueNext();
981
983 [[nodiscard]] std::string GetFinalFilename() const override;
984
985 public:
986 void Failed(std::string const &Message, pkgAcquire::MethodConfig const * Cnf) override;
987 void Done(std::string const &Message, HashStringList const &Hashes,
988 pkgAcquire::MethodConfig const *Cnf) override;
989 [[nodiscard]] std::string DescURI() const override;
990 [[nodiscard]] std::string ShortDesc() const override;
991 void Finished() override;
992 [[nodiscard]] bool IsTrusted() const override;
993 [[nodiscard]] HashStringList GetExpectedHashes() const override;
994 [[nodiscard]] bool HashesRequired() const override;
995
1014 pkgAcqArchive(pkgAcquire * const Owner,pkgSourceList * const Sources,
1015 pkgRecords * const Recs,pkgCache::VerIterator const &Version,
1016 std::string &StoreFilename);
1017 ~pkgAcqArchive() override;
1018};
1019 /*}}}*/
1025 class APT_PUBLIC pkgAcqChangelog : public pkgAcquire::Item
1026{
1027 class Private;
1028 Private * const d;
1029 std::string TemporaryDirectory;
1030 std::string const SrcName;
1031 std::string const SrcVersion;
1032
1033 public:
1034 // we will never have hashes for changelogs.
1035 // If you need verified ones, download the deb and extract the changelog.
1036 [[nodiscard]] HashStringList GetExpectedHashes() const override { return {}; }
1037 [[nodiscard]] bool HashesRequired() const override { return false; }
1038
1039 // Specialized action members
1040 void Failed(std::string const &Message, pkgAcquire::MethodConfig const *Cnf) override;
1041 void Done(std::string const &Message, HashStringList const &CalcHashes,
1042 pkgAcquire::MethodConfig const *Cnf) override;
1043 [[nodiscard]] std::string DescURI() const override { return Desc.URI; };
1044
1050 static std::string URI(pkgCache::VerIterator const &Ver);
1051
1060 static std::string URI(pkgCache::RlsFileIterator const &Rls,
1061 char const * const Component, char const * const SrcName,
1062 char const * const SrcVersion);
1063
1072 static std::string URI(std::string const &Template,
1073 char const * const Component, char const * const SrcName,
1074 char const * const SrcVersion);
1075
1081 static std::string URITemplate(pkgCache::RlsFileIterator const &Rls);
1082
1093 pkgAcqChangelog(pkgAcquire * const Owner, pkgCache::VerIterator const &Ver,
1094 std::string const &DestDir="", std::string const &DestFilename="");
1095
1109 pkgAcqChangelog(pkgAcquire * const Owner, pkgCache::RlsFileIterator const &Rls,
1110 char const * const Component, char const * const SrcName, char const * const SrcVersion,
1111 std::string const &DestDir="", std::string const &DestFilename="");
1112
1125 pkgAcqChangelog(pkgAcquire * const Owner, std::string const &URI,
1126 char const * const SrcName, char const * const SrcVersion,
1127 std::string const &DestDir="", std::string const &DestFilename="");
1128
1129 ~pkgAcqChangelog() override;
1130
1131private:
1132 APT_HIDDEN void Init(std::string const &DestDir, std::string const &DestFilename);
1133};
1134 /*}}}*/
1141 class APT_PUBLIC pkgAcqFile : public pkgAcquire::Item
1142{
1143 void * const d;
1144
1146 bool IsIndexFile;
1147
1148 HashStringList const ExpectedHashes;
1149 public:
1150 [[nodiscard]] HashStringList GetExpectedHashes() const override;
1151 [[nodiscard]] bool HashesRequired() const override;
1152
1153 // Specialized action members
1154 void Done(std::string const &Message, HashStringList const &CalcHashes,
1155 pkgAcquire::MethodConfig const *Cnf) override;
1156 [[nodiscard]] std::string DescURI() const override { return Desc.URI; };
1157 [[nodiscard]] std::string Custom600Headers() const override;
1158
1189
1190 pkgAcqFile(pkgAcquire * const Owner, std::string const &URI, HashStringList const &Hashes, unsigned long long const Size,
1191 std::string const &Desc, std::string const &ShortDesc,
1192 std::string const &DestDir="", std::string const &DestFilename="",
1193 bool const IsIndexFile=false);
1194 ~pkgAcqFile() override;
1195};
1196 /*}}}*/
1197 class APT_HIDDEN pkgAcqAuxFile final : public pkgAcqFile /*{{{*/
1198{
1199 pkgAcquire::Item *const Owner;
1200 pkgAcquire::Worker *const Worker;
1201 unsigned long long MaximumSize;
1202
1203 public:
1204 void Failed(std::string const &Message, pkgAcquire::MethodConfig const * Cnf) override;
1205 void Done(std::string const &Message, HashStringList const &CalcHashes,
1206 pkgAcquire::MethodConfig const *Cnf) override;
1207 [[nodiscard]] std::string Custom600Headers() const override;
1208 void Finished() override;
1209
1210 pkgAcqAuxFile(pkgAcquire::Item *const Owner, pkgAcquire::Worker *const Worker,
1211 std::string const &ShortDesc, std::string const &Desc, std::string const &URI,
1212 HashStringList const &Hashes, unsigned long long const MaximumSize);
1213 ~pkgAcqAuxFile() override;
1214};
1215 /*}}}*/
1217
1218#endif
acquire.h
HashStringList
Definition hashes.h:79
Hashes
Definition hashes.h:184
IndexTarget
Information about an index file.
Definition indexfile.h:39
URI
Definition strutl.h:220
WeakPointable
Definition weakptr.h:34
metaIndex
Definition metaindex.h:21
pkgAcqArchive::Recs
pkgRecords * Recs
A package records object, used to look up the file corresponding to each version of the package.
Definition acquire-item.h:967
pkgAcqArchive::Version
pkgCache::VerIterator Version
The package version being fetched.
Definition acquire-item.h:957
pkgAcqArchive::Failed
void Failed(std::string const &Message, pkgAcquire::MethodConfig const *Cnf) override
Invoked by the acquire worker when the object couldn't be fetched.
Definition acquire-item.cc:3608
pkgAcqArchive::Done
void Done(std::string const &Message, HashStringList const &Hashes, pkgAcquire::MethodConfig const *Cnf) override
Invoked by the acquire worker when the object was fetched successfully.
Definition acquire-item.cc:3583
pkgAcqArchive::Finished
void Finished() override
Invoked by the worker when the download is completely done.
Definition acquire-item.cc:3618
pkgAcqArchive::Trusted
bool Trusted
true if this version file is being downloaded from a trusted source.
Definition acquire-item.h:977
pkgAcqArchive::DescURI
std::string DescURI() const override
A "descriptive" URI-like string.
Definition acquire-item.cc:3626
pkgAcqArchive::GetExpectedHashes
HashStringList GetExpectedHashes() const override
Definition acquire-item.cc:395
pkgAcqArchive::GetFinalFilename
std::string GetFinalFilename() const override
Get the full pathname of the final file for the current URI.
Definition acquire-item.cc:547
pkgAcqArchive::StoreFilename
std::string & StoreFilename
A location in which the actual filename of the package should be stored.
Definition acquire-item.h:972
pkgAcqArchive::ShortDesc
std::string ShortDesc() const override
Short item description.
Definition acquire-item.cc:3631
pkgAcqArchive::HashesRequired
bool HashesRequired() const override
Definition acquire-item.cc:391
pkgAcqArchive::QueueNext
bool QueueNext()
Queue up the next available file for this version.
Definition acquire-item.cc:3575
pkgAcqArchive::IsTrusted
bool IsTrusted() const override
Definition acquire-item.cc:3613
pkgAcqArchive::Sources
pkgSourceList * Sources
The list of sources from which to pick archives to download this package from.
Definition acquire-item.h:962
pkgAcqArchive::pkgAcqArchive
pkgAcqArchive(pkgAcquire *const Owner, pkgSourceList *const Sources, pkgRecords *const Recs, pkgCache::VerIterator const &Version, std::string &StoreFilename)
Create a new pkgAcqArchive.
Definition acquire-item.cc:3380
pkgAcqAuxFile::Failed
void Failed(std::string const &Message, pkgAcquire::MethodConfig const *Cnf) override
Invoked by the acquire worker when the object couldn't be fetched.
Definition acquire-item.cc:4041
pkgAcqAuxFile::Finished
void Finished() override
Invoked by the worker when the download is completely done.
Definition acquire-item.cc:4070
pkgAcqAuxFile::Custom600Headers
std::string Custom600Headers() const override
Custom headers to be sent to the fetch process.
Definition acquire-item.cc:4061
pkgAcqAuxFile::Done
void Done(std::string const &Message, HashStringList const &CalcHashes, pkgAcquire::MethodConfig const *Cnf) override
Invoked by the acquire worker when the object was fetched successfully.
Definition acquire-item.cc:4051
pkgAcqBaseIndex::Failed
void Failed(std::string const &Message, pkgAcquire::MethodConfig const *Cnf) override
Invoked by the acquire worker when the object couldn't be fetched.
Definition acquire-item.cc:2319
pkgAcqBaseIndex::GetFinalFilename
std::string GetFinalFilename() const override
Get the full pathname of the final file for the current URI.
Definition acquire-item.cc:539
pkgAcqChangelog::Private
Definition acquire-item.cc:3640
pkgAcqChangelog
Retrieve the changelog for the given version {{{.
Definition acquire-item.h:1026
pkgAcqChangelog::DescURI
std::string DescURI() const override
A "descriptive" URI-like string.
Definition acquire-item.h:1043
pkgAcqChangelog::GetExpectedHashes
HashStringList GetExpectedHashes() const override
Definition acquire-item.h:1036
pkgAcqChangelog::HashesRequired
bool HashesRequired() const override
Definition acquire-item.h:1037
pkgAcqChangelog::pkgAcqChangelog
pkgAcqChangelog(pkgAcquire *const Owner, pkgCache::VerIterator const &Ver, std::string const &DestDir="", std::string const &DestFilename="")
Create a new pkgAcqChangelog object.
Definition acquire-item.cc:3644
pkgAcqDiffIndex
An item that is responsible for fetching an index file of {{{ package list diffs and starting the pac...
Definition acquire-item.h:711
pkgAcqDiffIndex::Failed
void Failed(std::string const &Message, pkgAcquire::MethodConfig const *Cnf) override
Invoked by the acquire worker when the object couldn't be fetched.
Definition acquire-item.cc:2730
pkgAcqDiffIndex::Done
void Done(std::string const &Message, HashStringList const &Hashes, pkgAcquire::MethodConfig const *Cnf) override
Invoked by the acquire worker when the object was fetched successfully.
Definition acquire-item.cc:2757
pkgAcqDiffIndex::DescURI
std::string DescURI() const override
A "descriptive" URI-like string.
Definition acquire-item.h:734
pkgAcqDiffIndex::GetFinalFilename
std::string GetFinalFilename() const override
Get the full pathname of the final file for the current URI.
Definition acquire-item.cc:526
pkgAcqDiffIndex::VerifyDone
bool VerifyDone(std::string const &Message, pkgAcquire::MethodConfig const *Cnf) override
Invoked by the acquire worker to check if the successfully fetched object is also the objected we wan...
Definition acquire-item.cc:2746
pkgAcqDiffIndex::pkgAcqDiffIndex
pkgAcqDiffIndex(pkgAcquire *const Owner, pkgAcqMetaClearSig *const TransactionManager, IndexTarget const &Target) APT_NONNULL(2
Create a new pkgAcqDiffIndex.
Definition acquire-item.cc:2343
pkgAcqDiffIndex::QueueURI
bool QueueURI(pkgAcquire::ItemDesc &Item) override
Insert this item into its owner's queue.
Definition acquire-item.cc:512
pkgAcqDiffIndex::Debug
bool Debug
If true, debugging information will be written to std::clog.
Definition acquire-item.h:719
pkgAcqFile
Retrieve an arbitrary file to the current directory. {{{.
Definition acquire-item.h:1142
pkgAcqFile::DescURI
std::string DescURI() const override
A "descriptive" URI-like string.
Definition acquire-item.h:1156
pkgAcqFile::GetExpectedHashes
HashStringList GetExpectedHashes() const override
Definition acquire-item.cc:406
pkgAcqFile::HashesRequired
bool HashesRequired() const override
Definition acquire-item.cc:401
pkgAcqFile::Done
void Done(std::string const &Message, HashStringList const &CalcHashes, pkgAcquire::MethodConfig const *Cnf) override
Invoked by the acquire worker when the object was fetched successfully.
Definition acquire-item.cc:3984
pkgAcqFile::pkgAcqFile
pkgAcqFile(pkgAcquire *const Owner, std::string const &URI, HashStringList const &Hashes, unsigned long long const Size, std::string const &Desc, std::string const &ShortDesc, std::string const &DestDir="", std::string const &DestFilename="", bool const IsIndexFile=false)
Create a new pkgAcqFile object.
Definition acquire-item.cc:3944
pkgAcqIndexDiffs
An item that is responsible for fetching server-merge patches {{{ that need to be applied to a given ...
Definition acquire-item.h:853
pkgAcqIndexDiffs::DescURI
std::string DescURI() const override
A "descriptive" URI-like string.
Definition acquire-item.h:919
pkgAcqIndexDiffs::pkgAcqIndexDiffs
pkgAcqIndexDiffs(pkgAcquire *const Owner, pkgAcqMetaClearSig *const TransactionManager, IndexTarget const &Target, std::vector< DiffInfo > const &diffs=std::vector< DiffInfo >()) APT_NONNULL(2
Create an index diff item.
Definition acquire-item.cc:2807
pkgAcqIndexDiffs::available_patches
std::vector< DiffInfo > available_patches
Definition acquire-item.h:895
pkgAcqIndexDiffs::DiffState
DiffState
Definition acquire-item.h:899
pkgAcqIndexDiffs::StateApplyDiff
@ StateApplyDiff
The diff is currently being applied.
Definition acquire-item.h:904
pkgAcqIndexDiffs::StateFetchDiff
@ StateFetchDiff
The diff is currently being fetched.
Definition acquire-item.h:901
pkgAcqIndexDiffs::Debug
bool Debug
If true, debugging output will be written to std::clog.
Definition acquire-item.h:885
pkgAcqIndexMergeDiffs
An item that is responsible for fetching client-merge patches {{{ that need to be applied to a given ...
Definition acquire-item.h:778
pkgAcqIndexMergeDiffs::DescURI
std::string DescURI() const override
A "descriptive" URI-like string.
Definition acquire-item.h:818
pkgAcqIndexMergeDiffs::pkgAcqIndexMergeDiffs
pkgAcqIndexMergeDiffs(pkgAcquire *const Owner, pkgAcqMetaClearSig *const TransactionManager, IndexTarget const &Target, DiffInfo const &patch, std::vector< pkgAcqIndexMergeDiffs * > const *const allPatches) APT_NONNULL(2
Create an index merge-diff item.
Definition acquire-item.cc:3015
pkgAcqIndexMergeDiffs::allPatches
std::vector< pkgAcqIndexMergeDiffs * > const *const allPatches
list of all download items for the patches
Definition acquire-item.h:790
pkgAcqIndexMergeDiffs::patch
struct DiffInfo const patch
information about the current patch
Definition acquire-item.h:787
pkgAcqIndexMergeDiffs::DiffState
DiffState
Definition acquire-item.h:794
pkgAcqIndexMergeDiffs::StateErrorDiff
@ StateErrorDiff
something bad happened and fallback was triggered
Definition acquire-item.h:805
pkgAcqIndexMergeDiffs::StateApplyDiff
@ StateApplyDiff
The diff is currently being applied.
Definition acquire-item.h:799
pkgAcqIndexMergeDiffs::StateFetchDiff
@ StateFetchDiff
The diff is currently being fetched.
Definition acquire-item.h:796
pkgAcqIndexMergeDiffs::StateDoneDiff
@ StateDoneDiff
the work with this diff is done
Definition acquire-item.h:802
pkgAcqIndexMergeDiffs::Debug
bool Debug
If true, debugging output will be written to std::clog.
Definition acquire-item.h:784
pkgAcqIndex
An acquire item that is responsible for fetching an index {{{ file (e.g., Packages or Sources).
Definition acquire-item.h:622
pkgAcqIndex::Failed
void Failed(std::string const &Message, pkgAcquire::MethodConfig const *Cnf) override
Invoked by the acquire worker when the object couldn't be fetched.
Definition acquire-item.cc:3264
pkgAcqIndex::Done
void Done(std::string const &Message, HashStringList const &Hashes, pkgAcquire::MethodConfig const *Cnf) override
Invoked by the acquire worker when the object was fetched successfully.
Definition acquire-item.cc:3282
pkgAcqIndex::CompressionExtensions
std::string CompressionExtensions
The compression-related file extensions that are being added to the downloaded file one by one if fir...
Definition acquire-item.h:654
pkgAcqIndex::DescURI
std::string DescURI() const override
A "descriptive" URI-like string.
Definition acquire-item.h:673
pkgAcqIndex::GetFinalFilename
std::string GetFinalFilename() const override
Get the full pathname of the final file for the current URI.
Definition acquire-item.cc:530
pkgAcqIndex::InitByHashIfNeeded
void InitByHashIfNeeded()
Do the changes needed to fetch via AptByHash (if needed)
pkgAcqIndex::CurrentCompressionExtension
std::string CurrentCompressionExtension
The actual compression extension currently used.
Definition acquire-item.h:657
pkgAcqIndex::AllStages
AllStages
The stages the method goes through.
Definition acquire-item.h:632
pkgAcqIndex::EraseFileName
std::string EraseFileName
If set, this partially downloaded file will be removed when the download completes.
Definition acquire-item.h:649
pkgAcqIndex::Custom600Headers
std::string Custom600Headers() const override
Custom headers to be sent to the fetch process.
Definition acquire-item.cc:3227
pkgAcqMetaBase
the manager of a transaction
Definition acquire-item.h:408
pkgAcqMetaBase::TransactionStageRemoval
void TransactionStageRemoval(pkgAcqTransactionItem *const I, const std::string &FinalFile)
Stage (queue) a removal action when the transaction is committed.
Definition acquire-item.cc:1362
pkgAcqMetaBase::GetExpectedHashes
HashStringList GetExpectedHashes() const override
Definition acquire-item.cc:351
pkgAcqMetaBase::GetFinalFilename
std::string GetFinalFilename() const override
Get the full pathname of the final file for the current URI.
Definition acquire-item.cc:543
pkgAcqMetaBase::CheckAuthDone
bool CheckAuthDone(std::string const &Message, pkgAcquire::MethodConfig const *const Cnf)
Called when authentication succeeded.
Definition acquire-item.cc:1501
pkgAcqMetaBase::AuthPass
bool AuthPass
If true, the index's signature is currently being verified.
Definition acquire-item.h:415
pkgAcqMetaBase::TransactionStageCopy
void TransactionStageCopy(pkgAcqTransactionItem *const I, const std::string &From, const std::string &To)
Stage (queue) a copy action when the transaction is committed.
Definition acquire-item.cc:1353
pkgAcqMetaBase::CheckStopAuthentication
bool CheckStopAuthentication(pkgAcquire::Item *const I, const std::string &Message)
Definition acquire-item.cc:1372
pkgAcqMetaBase::HashesRequired
bool HashesRequired() const override
Definition acquire-item.cc:346
pkgAcqMetaBase::QueueURI
bool QueueURI(pkgAcquire::ItemDesc &Item) override
Insert this item into its owner's queue.
Definition acquire-item.cc:506
pkgAcqMetaBase::VerifyVendor
bool VerifyVendor(std::string const &Message)
Check that the release file is a release file for the correct distribution.
Definition acquire-item.cc:1778
pkgAcqMetaBase::CheckDownloadDone
bool CheckDownloadDone(pkgAcqTransactionItem *const I, const std::string &Message, HashStringList const &Hashes) const
Called when a file is finished being retrieved.
Definition acquire-item.cc:1441
pkgAcqMetaBase::QueueForSignatureVerify
void QueueForSignatureVerify(pkgAcqTransactionItem *const I, std::string const &File, std::string const &Signature)
Queue the downloaded Signature for verification.
Definition acquire-item.cc:1423
pkgAcqMetaBase::Custom600Headers
std::string Custom600Headers() const override
Custom headers to be sent to the fetch process.
Definition acquire-item.cc:1405
pkgAcqMetaClearSig
An item responsible for downloading clearsigned metaindexes {{{.
Definition acquire-item.h:564
pkgAcqMetaClearSig::pkgAcqMetaClearSig
pkgAcqMetaClearSig(pkgAcquire *const Owner, IndexTarget const &ClearsignedTarget, IndexTarget const &DetachedDataTarget, IndexTarget const &DetachedSigTarget, metaIndex *const MetaIndexParser)
Create a new pkgAcqMetaClearSig.
Definition acquire-item.cc:1927
pkgAcqMetaClearSig::Failed
void Failed(std::string const &Message, pkgAcquire::MethodConfig const *Cnf) override
Invoked by the acquire worker when the object couldn't be fetched.
Definition acquire-item.cc:2018
pkgAcqMetaClearSig::Done
void Done(std::string const &Message, HashStringList const &Hashes, pkgAcquire::MethodConfig const *Cnf) override
Invoked by the acquire worker when the object was fetched successfully.
Definition acquire-item.cc:1980
pkgAcqMetaClearSig::QueueIndexes
void QueueIndexes(bool const verify)
Starts downloading the individual index files.
Definition acquire-item.cc:1560
pkgAcqMetaClearSig::Finished
void Finished() override
Invoked by the worker when the download is completely done.
Definition acquire-item.cc:1958
pkgAcqMetaClearSig::MetaIndexParser
metaIndex * MetaIndexParser
A package-system-specific parser for the meta-index file.
Definition acquire-item.h:570
pkgAcqMetaClearSig::VerifyDone
bool VerifyDone(std::string const &Message, pkgAcquire::MethodConfig const *Cnf) override
Invoked by the acquire worker to check if the successfully fetched object is also the objected we wan...
Definition acquire-item.cc:1967
pkgAcqMetaClearSig::Custom600Headers
std::string Custom600Headers() const override
Custom headers to be sent to the fetch process.
Definition acquire-item.cc:1947
pkgAcqMetaIndex
An item that is responsible for downloading the meta-index {{{ file (i.e., Release) itself and verify...
Definition acquire-item.h:501
pkgAcqMetaIndex::Failed
void Failed(std::string const &Message, pkgAcquire::MethodConfig const *Cnf) override
Invoked by the acquire worker when the object couldn't be fetched.
Definition acquire-item.cc:2138
pkgAcqMetaIndex::Done
void Done(std::string const &Message, HashStringList const &Hashes, pkgAcquire::MethodConfig const *Cnf) override
Invoked by the acquire worker when the object was fetched successfully.
Definition acquire-item.cc:2122
pkgAcqMetaIndex::DescURI
std::string DescURI() const override
A "descriptive" URI-like string.
Definition acquire-item.cc:2157
pkgAcqMetaIndex::pkgAcqMetaIndex
pkgAcqMetaIndex(pkgAcquire *const Owner, pkgAcqMetaClearSig *const TransactionManager, IndexTarget const &DataTarget, IndexTarget const &DetachedSigTarget) APT_NONNULL(2
Create a new pkgAcqMetaIndex.
Definition acquire-item.cc:2089
pkgAcqMetaIndex::Init
void Init(std::string const &URIDesc, std::string const &ShortDesc)
delayed constructor
pkgAcqMetaSig
An acquire item that downloads the detached signature {{{ of a meta-index (Release) file,...
Definition acquire-item.h:534
pkgAcqMetaSig::GetFinalFilename
std::string GetFinalFilename() const override
Get the full pathname of the final file for the current URI.
Definition acquire-item.cc:535
pkgAcqMetaSig::HashesRequired
bool HashesRequired() const override
Definition acquire-item.h:548
pkgAcqMetaSig::pkgAcqMetaSig
pkgAcqMetaSig(pkgAcquire *const Owner, pkgAcqMetaClearSig *const TransactionManager, IndexTarget const &Target, pkgAcqMetaIndex *const MetaIndex) APT_NONNULL(2
Create a new pkgAcqMetaSig.
Definition acquire-item.cc:2165
pkgAcqTransactionItem
baseclass for the indexes files to manage them all together
Definition acquire-item.h:370
pkgAcqTransactionItem::DescURI
std::string DescURI() const override
A "descriptive" URI-like string.
Definition acquire-item.h:393
pkgAcqTransactionItem::TransactionManager
pkgAcqMetaClearSig *const TransactionManager
TransactionManager.
Definition acquire-item.h:384
pkgAcqTransactionItem::QueueURI
bool QueueURI(pkgAcquire::ItemDesc &Item) override
Insert this item into its owner's queue.
Definition acquire-item.cc:421
pkgAcqTransactionItem::PartialFile
std::string PartialFile
storge name until a transaction is finished
Definition acquire-item.h:381
pkgAcquire::Item
Represents the process by which a pkgAcquire object should retrieve a file or a collection of files.
Definition acquire-item.h:59
pkgAcquire::Item::Priority
int APT_HIDDEN Priority()
The priority of the item, used for queuing.
Definition acquire-item.cc:1187
pkgAcquire::Item::HashesRequired
virtual bool HashesRequired() const
Definition acquire-item.h:270
pkgAcquire::Item::RenameOnError
bool RenameOnError(RenameOnErrorState const state)
Rename failed file and set error.
Definition acquire-item.cc:1105
pkgAcquire::Item::IsTrusted
virtual bool IsTrusted() const
Definition acquire-item.cc:887
pkgAcquire::Item::QueueCounter
unsigned int QueueCounter
The number of fetch queues into which this item has been inserted.
Definition acquire-item.h:138
pkgAcquire::Item::VerifyDone
virtual bool VerifyDone(std::string const &Message, pkgAcquire::MethodConfig const *const Cnf)
Invoked by the acquire worker to check if the successfully fetched object is also the objected we wan...
Definition acquire-item.cc:1048
pkgAcquire::Item::HashSum
std::string HashSum() const
Definition acquire-item.cc:1150
pkgAcquire::Item::GetOwner
pkgAcquire * GetOwner() const
Definition acquire-item.cc:877
pkgAcquire::Item::PartialSize
unsigned long long PartialSize
How much of the object was already fetched.
Definition acquire-item.h:99
pkgAcquire::Item::Retries
unsigned int Retries
Number of retries.
Definition acquire-item.h:156
pkgAcquire::Item::QueueURI
virtual bool QueueURI(ItemDesc &Item)
Insert this item into its owner's queue.
Definition acquire-item.cc:412
pkgAcquire::Item::ExpectedAdditionalItems
unsigned int ExpectedAdditionalItems
The number of additional fetch items that are expected once this item is done.
Definition acquire-item.h:148
pkgAcquire::Item::GetFinalFilename
virtual std::string GetFinalFilename() const
Get the full pathname of the final file for the current URI.
Definition acquire-item.cc:521
pkgAcquire::Item::ActiveSubprocess
std::string ActiveSubprocess
contains the name of the subprocess that is operating on this object (for instance,...
Definition acquire-item.h:104
pkgAcquire::Item::Desc
pkgAcquire::ItemDesc Desc
The item that is currently being downloaded.
Definition acquire-item.h:313
pkgAcquire::Item::Dequeue
void Dequeue()
Remove this item from its owner's queue.
Definition acquire-item.cc:1099
pkgAcquire::Item::Finished
virtual void Finished()
Invoked by the worker when the download is completely done.
Definition acquire-item.cc:873
pkgAcquire::Item::Rename
bool Rename(std::string const &From, std::string const &To)
Rename a file without modifying its timestamp.
Definition acquire-item.cc:1083
pkgAcquire::Item::ID
unsigned long ID
A client-supplied unique identifier.
Definition acquire-item.h:113
pkgAcquire::Item::~Item
virtual ~Item()
Remove this item from its owner's queue by invoking pkgAcquire::Remove.
Definition acquire-item.cc:794
pkgAcquire::Item::FileSize
unsigned long long FileSize
The size of the object to fetch.
Definition acquire-item.h:96
pkgAcquire::Item::Complete
bool Complete
If true, the entire object has been successfully fetched.
Definition acquire-item.h:119
pkgAcquire::Item::FetchAfter
void APT_HIDDEN FetchAfter(time_point FetchAfter)
internal clock definitions to avoid typing all that all over the place
Definition acquire-item.cc:1157
pkgAcquire::Item::GetExpectedHashes
virtual HashStringList GetExpectedHashes() const =0
pkgAcquire::Item::Local
bool Local
If true, the URI of this object is "local".
Definition acquire-item.h:126
pkgAcquire::Item::Start
virtual void Start(std::string const &Message, unsigned long long const Size)
Invoked when the worker starts to fetch this object.
Definition acquire-item.cc:1037
pkgAcquire::Item::Item
Item(pkgAcquire *const Owner)
Initialize an item.
Definition acquire-item.cc:785
pkgAcquire::Item::Done
virtual void Done(std::string const &Message, HashStringList const &Hashes, pkgAcquire::MethodConfig const *const Cnf)
Invoked by the acquire worker when the object was fetched successfully.
Definition acquire-item.cc:1062
pkgAcquire::Item::ErrorText
std::string ErrorText
Contains a textual description of the error encountered if ItemState is StatError or StatAuthError.
Definition acquire-item.h:93
pkgAcquire::Item::DestFile
std::string DestFile
The name of the file into which the retrieved object will be written.
Definition acquire-item.h:153
pkgAcquire::Item::ItemState
ItemState
The current status of this item.
Definition acquire-item.h:64
pkgAcquire::Item::StatAuthError
@ StatAuthError
The item was downloaded but its authenticity could not be verified.
Definition acquire-item.h:82
pkgAcquire::Item::StatFetching
@ StatFetching
The item is currently being downloaded.
Definition acquire-item.h:69
pkgAcquire::Item::StatTransientNetworkError
@ StatTransientNetworkError
The item was could not be downloaded because of a transient network error (e.g. network down)
Definition acquire-item.h:87
pkgAcquire::Item::StatError
@ StatError
An error was encountered while downloading this item.
Definition acquire-item.h:77
pkgAcquire::Item::StatDone
@ StatDone
The item has been successfully downloaded.
Definition acquire-item.h:72
pkgAcquire::Item::StatIdle
@ StatIdle
The item is waiting to be downloaded.
Definition acquire-item.h:66
pkgAcquire::Item::Owner
pkgAcquire *const Owner
The acquire object with which this item is associated.
Definition acquire-item.h:310
pkgAcquire::Item::DescURI
virtual std::string DescURI() const =0
A "descriptive" URI-like string.
pkgAcquire::Item::ShortDesc
virtual std::string ShortDesc() const
Short item description.
Definition acquire-item.cc:868
pkgAcquire::Item::SetActiveSubprocess
void SetActiveSubprocess(std::string const &subprocess)
Set the name of the current active subprocess.
Definition acquire-item.cc:1145
pkgAcquire::Item::Custom600Headers
virtual std::string Custom600Headers() const
Custom headers to be sent to the fetch process.
Definition acquire-item.cc:800
pkgAcquire::Worker
A fetch subprocess.
Definition acquire-worker.h:48
pkgAcquire
The core download scheduler. {{{.
Definition acquire.h:94
pkgAcquire::Add
void Add(Item *Item)
Add the given item to the list of items.
Definition acquire.cc:229
pkgAcquire::pkgAcquire
pkgAcquire(pkgAcquireStatus *Log)
Construct a new pkgAcquire.
Definition acquire.cc:80
pkgAcquire::Failed
@ Failed
Some files failed to download.
Definition acquire.h:267
pkgCache::RlsFileIterator
Definition cacheiterators.h:454
pkgCache::VerIterator
Definition cacheiterators.h:218
pkgRecords
Definition pkgrecords.h:28
pkgSourceList
Definition sourcelist.h:43
pkgcache.h
pkgCache - Structure definitions for the cache file
DiffInfo
Definition acquire-item.h:687
DiffInfo::patch_hashes
HashStringList patch_hashes
Definition acquire-item.h:695
DiffInfo::result_hashes
HashStringList result_hashes
Definition acquire-item.h:692
DiffInfo::download_hashes
HashStringList download_hashes
Definition acquire-item.h:698
DiffInfo::file
std::string file
Definition acquire-item.h:689
pkgAcquire::ItemDesc
Represents a single download source from which an item should be downloaded.
Definition acquire.h:391
pkgAcquire::MethodConfig
Information about the properties of a single acquire method. {{{.
Definition acquire.h:644