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

apt 3.3.2 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 APT_HIDDEN void Cancelled();
258
260 virtual void Finished();
261
263 virtual HashStringList GetExpectedHashes() const = 0;
265 std::string HashSum() const;
266
273 virtual bool HashesRequired() const { return true; }
274
276 pkgAcquire *GetOwner() const;
277 pkgAcquire::ItemDesc &GetItemDesc();
278
280 virtual bool IsTrusted() const;
281
286 void SetActiveSubprocess(std::string const &subprocess);
287
296 explicit Item(pkgAcquire * const Owner);
297
301 virtual ~Item();
302
303 bool APT_HIDDEN IsRedirectionLoop(std::string const &NewURI);
305 int APT_HIDDEN Priority();
306
308 void APT_HIDDEN FetchAfter(time_point FetchAfter);
309 time_point APT_HIDDEN FetchAfter();
310
311 protected:
313 pkgAcquire * const Owner;
314
316 pkgAcquire::ItemDesc Desc;
317
318 enum RenameOnErrorState {
319 HashSumMismatch,
320 SizeMismatch,
321 InvalidFormat,
322 SignatureError,
323 NotClearsigned,
324 MaximumSizeExceeded,
325 PDiffError,
326 };
327
332 bool RenameOnError(RenameOnErrorState const state);
333
344 virtual bool QueueURI(ItemDesc &Item);
345
347 void Dequeue();
348
358 bool Rename(std::string const &From, std::string const &To);
359
361 virtual std::string GetFinalFilename() const;
362
363 private:
364 class Private;
365 Private * const d;
366
367 friend class pkgAcqMetaBase;
368 friend class pkgAcqMetaClearSig;
369};
370 /*}}}*/
371 class APT_HIDDEN pkgAcqTransactionItem: public pkgAcquire::Item /*{{{*/
373{
374 void * const d;
375 protected:
376 HashStringList GetExpectedHashesFor(std::string const &MetaKey) const;
377
378 bool QueueURI(pkgAcquire::ItemDesc &Item) override;
379
380 public:
381 IndexTarget const Target;
382
384 std::string PartialFile;
385
387 pkgAcqMetaClearSig * const TransactionManager;
388
389 enum TransactionStates {
390 TransactionStarted,
391 TransactionCommit,
392 TransactionAbort,
393 };
394 virtual bool TransactionState(TransactionStates const state);
395
396 [[nodiscard]] std::string DescURI() const override { return Target.URI; }
397 [[nodiscard]] HashStringList GetExpectedHashes() const override;
398 [[nodiscard]] virtual std::string GetMetaKey() const;
399 [[nodiscard]] bool HashesRequired() const override;
400 [[nodiscard]] virtual bool AcquireByHash() const;
401
402 pkgAcqTransactionItem(pkgAcquire * const Owner, pkgAcqMetaClearSig * const TransactionManager, IndexTarget const &Target) APT_NONNULL(2, 3);
403 ~pkgAcqTransactionItem() override;
404
405 friend class pkgAcqMetaBase;
406 friend class pkgAcqMetaClearSig;
407};
408 /*}}}*/
409 class APT_HIDDEN pkgAcqMetaBase : public pkgAcqTransactionItem /*{{{*/
411{
412 void * const d;
413 protected:
414 std::vector<pkgAcqTransactionItem*> Transaction;
415
418 bool AuthPass;
419
429 bool CheckDownloadDone(pkgAcqTransactionItem * const I, const std::string &Message, HashStringList const &Hashes) const;
430
432 void QueueForSignatureVerify(pkgAcqTransactionItem * const I, std::string const &File, std::string const &Signature);
433
434 [[nodiscard]] std::string Custom600Headers() const override;
435
446 bool CheckAuthDone(std::string const &Message, pkgAcquire::MethodConfig const *const Cnf);
447
449 bool CheckStopAuthentication(pkgAcquire::Item * const I, const std::string &Message);
450
456 bool VerifyVendor(std::string const &Message);
457
458 bool TransactionState(TransactionStates state) override;
459
460 public:
461 // This refers more to the Transaction-Manager than the actual file
462 bool IMSHit;
463 TransactionStates State;
464 std::string BaseURI;
465
466 bool QueueURI(pkgAcquire::ItemDesc &Item) override;
467 [[nodiscard]] HashStringList GetExpectedHashes() const override;
468 [[nodiscard]] bool HashesRequired() const override;
469
470 // transaction code
471 void Add(pkgAcqTransactionItem * const I);
472 void AbortTransaction();
473 bool TransactionHasError() const;
474 void CommitTransaction();
475
478 void TransactionStageCopy(pkgAcqTransactionItem * const I,
479 const std::string &From,
480 const std::string &To);
483 void TransactionStageRemoval(pkgAcqTransactionItem * const I, const std::string &FinalFile);
484
486 [[nodiscard]] std::string GetFinalFilename() const override;
487
488 pkgAcqMetaBase(pkgAcquire * const Owner, pkgAcqMetaClearSig * const TransactionManager,
489 IndexTarget const &DataTarget) APT_NONNULL(2, 3);
490 ~pkgAcqMetaBase() override;
491};
492 /*}}}*/
503 class APT_HIDDEN pkgAcqMetaIndex : public pkgAcqMetaBase
504{
505 void * const d;
506 protected:
507 IndexTarget const DetachedSigTarget;
508
510 void Init(std::string const &URIDesc, std::string const &ShortDesc);
511
512 public:
513 [[nodiscard]] std::string DescURI() const override;
514
515 // Specialized action members
516 void Failed(std::string const &Message, pkgAcquire::MethodConfig const *Cnf) override;
517 void Done(std::string const &Message, HashStringList const &Hashes,
518 pkgAcquire::MethodConfig const *Cnf) override;
519
521 pkgAcqMetaIndex(pkgAcquire * const Owner, pkgAcqMetaClearSig * const TransactionManager,
522 IndexTarget const &DataTarget, IndexTarget const &DetachedSigTarget) APT_NONNULL(2, 3);
523 ~pkgAcqMetaIndex() override;
524
525 friend class pkgAcqMetaSig;
526};
527 /*}}}*/
536 class APT_HIDDEN pkgAcqMetaSig final : public pkgAcqTransactionItem
537{
538 void * const d;
539
540 pkgAcqMetaIndex * const MetaIndex;
541
543 std::string MetaIndexFileSignature;
544
545 protected:
546
548 [[nodiscard]] std::string GetFinalFilename() const override;
549
550 public:
551 [[nodiscard]] bool HashesRequired() const override { return false; }
552
553 // Specialized action members
554 void Failed(std::string const &Message, pkgAcquire::MethodConfig const *Cnf) override;
555 void Done(std::string const &Message, HashStringList const &Hashes,
556 pkgAcquire::MethodConfig const *Cnf) override;
557 [[nodiscard]] std::string Custom600Headers() const override;
558
560 pkgAcqMetaSig(pkgAcquire * const Owner, pkgAcqMetaClearSig * const TransactionManager,
561 IndexTarget const &Target, pkgAcqMetaIndex * const MetaIndex) APT_NONNULL(2, 3, 5);
562 ~pkgAcqMetaSig() override;
563};
564 /*}}}*/
566 class APT_HIDDEN pkgAcqMetaClearSig final : public pkgAcqMetaIndex
567{
568 void * const d;
569 IndexTarget const DetachedDataTarget;
570
571 public:
573 metaIndex *MetaIndexParser;
574 metaIndex *LastMetaIndexParser;
575
576 void Failed(std::string const &Message, pkgAcquire::MethodConfig const *Cnf) override;
577 [[nodiscard]] std::string Custom600Headers() const override;
578 bool VerifyDone(std::string const &Message, pkgAcquire::MethodConfig const *Cnf) override;
579 void Done(std::string const &Message, HashStringList const &Hashes,
580 pkgAcquire::MethodConfig const *Cnf) override;
581 void DoCancelled();
582 void Finished() override;
583
592 void QueueIndexes(bool const verify);
593
595 pkgAcqMetaClearSig(pkgAcquire * const Owner,
596 IndexTarget const &ClearsignedTarget,
597 IndexTarget const &DetachedDataTarget,
598 IndexTarget const &DetachedSigTarget,
599 metaIndex * const MetaIndexParser);
600 ~pkgAcqMetaClearSig() override;
601};
602 /*}}}*/
604 class APT_HIDDEN pkgAcqBaseIndex : public pkgAcqTransactionItem
605{
606 void * const d;
607
608 public:
610 [[nodiscard]] std::string GetFinalFilename() const override;
611 void Failed(std::string const &Message, pkgAcquire::MethodConfig const *Cnf) override;
612
613 pkgAcqBaseIndex(pkgAcquire * const Owner, pkgAcqMetaClearSig * const TransactionManager,
614 IndexTarget const &Target) APT_NONNULL(2, 3);
615 ~pkgAcqBaseIndex() override;
616};
617 /*}}}*/
625 class APT_HIDDEN pkgAcqIndex : public pkgAcqBaseIndex
626{
627 void * const d;
628
629 protected:
630
636 enum AllStages {
637 STAGE_DOWNLOAD,
638 STAGE_DECOMPRESS_AND_VERIFY,
639 };
640 AllStages Stage;
641
643 void StageDownloadDone(std::string const &Message);
644
648 void StageDecompressDone();
649
653 std::string EraseFileName;
654
658 std::string CompressionExtensions;
659
661 std::string CurrentCompressionExtension;
662
664 void InitByHashIfNeeded();
665
667 [[nodiscard]] std::string GetFinalFilename() const override;
668
669 bool TransactionState(TransactionStates state) override;
670
671 public:
672 // Specialized action members
673 void Failed(std::string const &Message, pkgAcquire::MethodConfig const *Cnf) override;
674 void Done(std::string const &Message, HashStringList const &Hashes,
675 pkgAcquire::MethodConfig const *Cnf) override;
676 [[nodiscard]] std::string Custom600Headers() const override;
677 [[nodiscard]] std::string DescURI() const override { return Desc.URI; };
678 [[nodiscard]] std::string GetMetaKey() const override;
679
680 pkgAcqIndex(pkgAcquire * const Owner, pkgAcqMetaClearSig * const TransactionManager,
681 IndexTarget const &Target, bool const Derived = false) APT_NONNULL(2, 3);
682 ~pkgAcqIndex() override;
683
684 protected:
685 APT_HIDDEN void Init(std::string const &URI, std::string const &URIDesc,
686 std::string const &ShortDesc);
687 APT_HIDDEN bool CommonFailed(std::string const &TargetURI,
688 std::string const &Message, pkgAcquire::MethodConfig const *const Cnf);
689};
690 /*}}}*/
691struct APT_HIDDEN DiffInfo { /*{{{*/
693 std::string file;
694
696 HashStringList result_hashes;
697
699 HashStringList patch_hashes;
700
702 HashStringList download_hashes;
703};
704 /*}}}*/
714 class APT_HIDDEN pkgAcqDiffIndex final : public pkgAcqIndex
715{
716 void * const d;
717 std::vector<pkgAcqIndexMergeDiffs*> * diffs;
718 std::vector<DiffInfo> available_patches;
719 bool pdiff_merge;
720
721 protected:
723 bool Debug;
724
726 [[nodiscard]] std::string GetFinalFilename() const override;
727
728 bool QueueURI(pkgAcquire::ItemDesc &Item) override;
729
730 bool TransactionState(TransactionStates state) override;
731
732 public:
733 // Specialized action members
734 void Failed(std::string const &Message, pkgAcquire::MethodConfig const *Cnf) override;
735 bool VerifyDone(std::string const &Message, pkgAcquire::MethodConfig const *Cnf) override;
736 void Done(std::string const &Message, HashStringList const &Hashes,
737 pkgAcquire::MethodConfig const *Cnf) override;
738 [[nodiscard]] std::string DescURI() const override { return Target.URI + "Index"; };
739 [[nodiscard]] std::string GetMetaKey() const override;
740
751 bool ParseDiffIndex(std::string const &IndexDiffFile);
752
763 pkgAcqDiffIndex(pkgAcquire * const Owner, pkgAcqMetaClearSig * const TransactionManager,
764 IndexTarget const &Target) APT_NONNULL(2, 3);
765 ~pkgAcqDiffIndex() override;
766 private:
767 APT_HIDDEN void QueueOnIMSHit() const;
768};
769 /*}}}*/
781 class APT_HIDDEN pkgAcqIndexMergeDiffs final : public pkgAcqBaseIndex
782{
783 protected:
784
788 bool Debug;
789
791 struct DiffInfo const patch;
792
794 std::vector<pkgAcqIndexMergeDiffs*> const * const allPatches;
795
797 enum DiffState
798 {
800 StateFetchDiff,
801
803 StateApplyDiff,
804
806 StateDoneDiff,
807
809 StateErrorDiff
810 } State;
811
812 public:
818 void Failed(std::string const &Message, pkgAcquire::MethodConfig const *Cnf) override;
819 void Done(std::string const &Message, HashStringList const &Hashes,
820 pkgAcquire::MethodConfig const *Cnf) override;
821 [[nodiscard]] std::string Custom600Headers() const override;
822 [[nodiscard]] std::string DescURI() const override { return Target.URI + "Index"; };
823 [[nodiscard]] HashStringList GetExpectedHashes() const override;
824 [[nodiscard]] bool HashesRequired() const override;
825 [[nodiscard]] bool AcquireByHash() const override;
826
839 pkgAcqIndexMergeDiffs(pkgAcquire *const Owner, pkgAcqMetaClearSig *const TransactionManager,
840 IndexTarget const &Target, DiffInfo const &patch,
841 std::vector<pkgAcqIndexMergeDiffs *> const *const allPatches) APT_NONNULL(2, 3, 6);
842 ~pkgAcqIndexMergeDiffs() override;
843};
844 /*}}}*/
856 class APT_HIDDEN pkgAcqIndexDiffs final : public pkgAcqBaseIndex
857{
858 private:
859
869 APT_HIDDEN bool QueueNextDiff();
870
882 APT_HIDDEN void Finish(bool const allDone=false);
883
884 protected:
885
889 bool Debug;
890
899 std::vector<DiffInfo> available_patches;
900
902 enum DiffState
903 {
905 StateFetchDiff,
906
908 StateApplyDiff
909 } State;
910
911 public:
912
918 void Failed(std::string const &Message, pkgAcquire::MethodConfig const *Cnf) override;
919
920 void Done(std::string const &Message, HashStringList const &Hashes,
921 pkgAcquire::MethodConfig const * Cnf) override;
922 [[nodiscard]] std::string Custom600Headers() const override;
923 [[nodiscard]] std::string DescURI() const override { return Target.URI + "IndexDiffs"; };
924 [[nodiscard]] HashStringList GetExpectedHashes() const override;
925 [[nodiscard]] bool HashesRequired() const override;
926 [[nodiscard]] bool AcquireByHash() const override;
927
941 pkgAcqIndexDiffs(pkgAcquire *const Owner, pkgAcqMetaClearSig *const TransactionManager,
942 IndexTarget const &Target,
943 std::vector<DiffInfo> const &diffs = std::vector<DiffInfo>()) APT_NONNULL(2, 3);
944 ~pkgAcqIndexDiffs() override;
945};
946 /*}}}*/
952class APT_PUBLIC pkgAcqArchive : public pkgAcquire::Item
953{
954 void * const d;
955
956 bool LocalSource;
957 HashStringList ExpectedHashes;
958
959 protected:
961 pkgCache::VerIterator Version;
962
966 pkgSourceList *Sources;
967
971 pkgRecords *Recs;
972
976 std::string &StoreFilename;
977
981 bool Trusted;
982
984 bool QueueNext();
985
987 [[nodiscard]] std::string GetFinalFilename() const override;
988
989 public:
990 void Failed(std::string const &Message, pkgAcquire::MethodConfig const * Cnf) override;
991 void Done(std::string const &Message, HashStringList const &Hashes,
992 pkgAcquire::MethodConfig const *Cnf) override;
993 [[nodiscard]] std::string DescURI() const override;
994 [[nodiscard]] std::string ShortDesc() const override;
995 void Finished() override;
996 [[nodiscard]] bool IsTrusted() const override;
997 [[nodiscard]] HashStringList GetExpectedHashes() const override;
998 [[nodiscard]] bool HashesRequired() const override;
999
1018 pkgAcqArchive(pkgAcquire * const Owner,pkgSourceList * const Sources,
1019 pkgRecords * const Recs,pkgCache::VerIterator const &Version,
1020 std::string &StoreFilename);
1021 ~pkgAcqArchive() override;
1022};
1023 /*}}}*/
1029 class APT_PUBLIC pkgAcqChangelog : public pkgAcquire::Item
1030{
1031 class Private;
1032 Private * const d;
1033 std::string TemporaryDirectory;
1034 std::string const SrcName;
1035 std::string const SrcVersion;
1036
1037 public:
1038 // we will never have hashes for changelogs.
1039 // If you need verified ones, download the deb and extract the changelog.
1040 [[nodiscard]] HashStringList GetExpectedHashes() const override { return {}; }
1041 [[nodiscard]] bool HashesRequired() const override { return false; }
1042
1043 // Specialized action members
1044 void Failed(std::string const &Message, pkgAcquire::MethodConfig const *Cnf) override;
1045 void Done(std::string const &Message, HashStringList const &CalcHashes,
1046 pkgAcquire::MethodConfig const *Cnf) override;
1047 [[nodiscard]] std::string DescURI() const override { return Desc.URI; };
1048
1054 static std::string URI(pkgCache::VerIterator const &Ver);
1055
1064 static std::string URI(pkgCache::RlsFileIterator const &Rls,
1065 char const * const Component, char const * const SrcName,
1066 char const * const SrcVersion);
1067
1076 static std::string URI(std::string const &Template,
1077 char const * const Component, char const * const SrcName,
1078 char const * const SrcVersion);
1079
1085 static std::string URITemplate(pkgCache::RlsFileIterator const &Rls);
1086
1097 pkgAcqChangelog(pkgAcquire * const Owner, pkgCache::VerIterator const &Ver,
1098 std::string const &DestDir="", std::string const &DestFilename="");
1099
1113 pkgAcqChangelog(pkgAcquire * const Owner, pkgCache::RlsFileIterator const &Rls,
1114 char const * const Component, char const * const SrcName, char const * const SrcVersion,
1115 std::string const &DestDir="", std::string const &DestFilename="");
1116
1129 pkgAcqChangelog(pkgAcquire * const Owner, std::string const &URI,
1130 char const * const SrcName, char const * const SrcVersion,
1131 std::string const &DestDir="", std::string const &DestFilename="");
1132
1133 ~pkgAcqChangelog() override;
1134
1135private:
1136 APT_HIDDEN void Init(std::string const &DestDir, std::string const &DestFilename);
1137};
1138 /*}}}*/
1145 class APT_PUBLIC pkgAcqFile : public pkgAcquire::Item
1146{
1147 void * const d;
1148
1150 bool IsIndexFile;
1151
1152 HashStringList const ExpectedHashes;
1153 public:
1154 [[nodiscard]] HashStringList GetExpectedHashes() const override;
1155 [[nodiscard]] bool HashesRequired() const override;
1156
1157 // Specialized action members
1158 void Done(std::string const &Message, HashStringList const &CalcHashes,
1159 pkgAcquire::MethodConfig const *Cnf) override;
1160 [[nodiscard]] std::string DescURI() const override { return Desc.URI; };
1161 [[nodiscard]] std::string Custom600Headers() const override;
1162
1193
1194 pkgAcqFile(pkgAcquire * const Owner, std::string const &URI, HashStringList const &Hashes, unsigned long long const Size,
1195 std::string const &Desc, std::string const &ShortDesc,
1196 std::string const &DestDir="", std::string const &DestFilename="",
1197 bool const IsIndexFile=false);
1198 ~pkgAcqFile() override;
1199};
1200 /*}}}*/
1201 class APT_HIDDEN pkgAcqAuxFile final : public pkgAcqFile /*{{{*/
1202{
1203 pkgAcquire::Item *const Owner;
1204 pkgAcquire::Worker *const Worker;
1205 unsigned long long MaximumSize;
1211 std::string const OriginalURI;
1212
1213 public:
1214 void Failed(std::string const &Message, pkgAcquire::MethodConfig const * Cnf) override;
1215 void Done(std::string const &Message, HashStringList const &CalcHashes,
1216 pkgAcquire::MethodConfig const *Cnf) override;
1217 [[nodiscard]] std::string Custom600Headers() const override;
1218 void Finished() override;
1219
1220 pkgAcqAuxFile(pkgAcquire::Item *const Owner, pkgAcquire::Worker *const Worker,
1221 std::string const &ShortDesc, std::string const &Desc, std::string const &URI,
1222 HashStringList const &Hashes, unsigned long long const MaximumSize);
1223 ~pkgAcqAuxFile() override;
1224};
1225 /*}}}*/
1227
1228#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:221
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:971
pkgAcqArchive::Version
pkgCache::VerIterator Version
The package version being fetched.
Definition acquire-item.h:961
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:3675
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:3650
pkgAcqArchive::Finished
void Finished() override
Invoked by the worker when the download is completely done.
Definition acquire-item.cc:3685
pkgAcqArchive::Trusted
bool Trusted
true if this version file is being downloaded from a trusted source.
Definition acquire-item.h:981
pkgAcqArchive::DescURI
std::string DescURI() const override
A "descriptive" URI-like string.
Definition acquire-item.cc:3693
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:976
pkgAcqArchive::ShortDesc
std::string ShortDesc() const override
Short item description.
Definition acquire-item.cc:3698
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:3642
pkgAcqArchive::IsTrusted
bool IsTrusted() const override
Definition acquire-item.cc:3680
pkgAcqArchive::Sources
pkgSourceList * Sources
The list of sources from which to pick archives to download this package from.
Definition acquire-item.h:966
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:3447
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:4108
pkgAcqAuxFile::Finished
void Finished() override
Invoked by the worker when the download is completely done.
Definition acquire-item.cc:4139
pkgAcqAuxFile::Custom600Headers
std::string Custom600Headers() const override
Custom headers to be sent to the fetch process.
Definition acquire-item.cc:4130
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:4119
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:2386
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:3707
pkgAcqChangelog
Retrieve the changelog for the given version {{{.
Definition acquire-item.h:1030
pkgAcqChangelog::DescURI
std::string DescURI() const override
A "descriptive" URI-like string.
Definition acquire-item.h:1047
pkgAcqChangelog::GetExpectedHashes
HashStringList GetExpectedHashes() const override
Definition acquire-item.h:1040
pkgAcqChangelog::HashesRequired
bool HashesRequired() const override
Definition acquire-item.h:1041
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:3711
pkgAcqDiffIndex
An item that is responsible for fetching an index file of {{{ package list diffs and starting the pac...
Definition acquire-item.h:715
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:2797
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:2824
pkgAcqDiffIndex::DescURI
std::string DescURI() const override
A "descriptive" URI-like string.
Definition acquire-item.h:738
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:2813
pkgAcqDiffIndex::pkgAcqDiffIndex
pkgAcqDiffIndex(pkgAcquire *const Owner, pkgAcqMetaClearSig *const TransactionManager, IndexTarget const &Target) APT_NONNULL(2
Create a new pkgAcqDiffIndex.
Definition acquire-item.cc:2410
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:723
pkgAcqFile
Retrieve an arbitrary file to the current directory. {{{.
Definition acquire-item.h:1146
pkgAcqFile::DescURI
std::string DescURI() const override
A "descriptive" URI-like string.
Definition acquire-item.h:1160
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:4051
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:4011
pkgAcqIndexDiffs
An item that is responsible for fetching server-merge patches {{{ that need to be applied to a given ...
Definition acquire-item.h:857
pkgAcqIndexDiffs::DescURI
std::string DescURI() const override
A "descriptive" URI-like string.
Definition acquire-item.h:923
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:2874
pkgAcqIndexDiffs::available_patches
std::vector< DiffInfo > available_patches
Definition acquire-item.h:899
pkgAcqIndexDiffs::DiffState
DiffState
Definition acquire-item.h:903
pkgAcqIndexDiffs::StateApplyDiff
@ StateApplyDiff
The diff is currently being applied.
Definition acquire-item.h:908
pkgAcqIndexDiffs::StateFetchDiff
@ StateFetchDiff
The diff is currently being fetched.
Definition acquire-item.h:905
pkgAcqIndexDiffs::Debug
bool Debug
If true, debugging output will be written to std::clog.
Definition acquire-item.h:889
pkgAcqIndexMergeDiffs
An item that is responsible for fetching client-merge patches {{{ that need to be applied to a given ...
Definition acquire-item.h:782
pkgAcqIndexMergeDiffs::DescURI
std::string DescURI() const override
A "descriptive" URI-like string.
Definition acquire-item.h:822
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:3082
pkgAcqIndexMergeDiffs::allPatches
std::vector< pkgAcqIndexMergeDiffs * > const *const allPatches
list of all download items for the patches
Definition acquire-item.h:794
pkgAcqIndexMergeDiffs::patch
struct DiffInfo const patch
information about the current patch
Definition acquire-item.h:791
pkgAcqIndexMergeDiffs::DiffState
DiffState
Definition acquire-item.h:798
pkgAcqIndexMergeDiffs::StateErrorDiff
@ StateErrorDiff
something bad happened and fallback was triggered
Definition acquire-item.h:809
pkgAcqIndexMergeDiffs::StateApplyDiff
@ StateApplyDiff
The diff is currently being applied.
Definition acquire-item.h:803
pkgAcqIndexMergeDiffs::StateFetchDiff
@ StateFetchDiff
The diff is currently being fetched.
Definition acquire-item.h:800
pkgAcqIndexMergeDiffs::StateDoneDiff
@ StateDoneDiff
the work with this diff is done
Definition acquire-item.h:806
pkgAcqIndexMergeDiffs::Debug
bool Debug
If true, debugging output will be written to std::clog.
Definition acquire-item.h:788
pkgAcqIndex
An acquire item that is responsible for fetching an index {{{ file (e.g., Packages or Sources).
Definition acquire-item.h:626
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:3331
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:3349
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:658
pkgAcqIndex::DescURI
std::string DescURI() const override
A "descriptive" URI-like string.
Definition acquire-item.h:677
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:661
pkgAcqIndex::AllStages
AllStages
The stages the method goes through.
Definition acquire-item.h:636
pkgAcqIndex::EraseFileName
std::string EraseFileName
If set, this partially downloaded file will be removed when the download completes.
Definition acquire-item.h:653
pkgAcqIndex::Custom600Headers
std::string Custom600Headers() const override
Custom headers to be sent to the fetch process.
Definition acquire-item.cc:3294
pkgAcqMetaBase
the manager of a transaction
Definition acquire-item.h:411
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:1372
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:1511
pkgAcqMetaBase::AuthPass
bool AuthPass
If true, the index's signature is currently being verified.
Definition acquire-item.h:418
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:1363
pkgAcqMetaBase::CheckStopAuthentication
bool CheckStopAuthentication(pkgAcquire::Item *const I, const std::string &Message)
Definition acquire-item.cc:1382
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:1839
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:1451
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:1433
pkgAcqMetaBase::Custom600Headers
std::string Custom600Headers() const override
Custom headers to be sent to the fetch process.
Definition acquire-item.cc:1415
pkgAcqMetaClearSig
An item responsible for downloading clearsigned metaindexes {{{.
Definition acquire-item.h:567
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:1988
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:2085
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:2047
pkgAcqMetaClearSig::QueueIndexes
void QueueIndexes(bool const verify)
Starts downloading the individual index files.
Definition acquire-item.cc:1570
pkgAcqMetaClearSig::Finished
void Finished() override
Invoked by the worker when the download is completely done.
Definition acquire-item.cc:2025
pkgAcqMetaClearSig::MetaIndexParser
metaIndex * MetaIndexParser
A package-system-specific parser for the meta-index file.
Definition acquire-item.h:573
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:2034
pkgAcqMetaClearSig::Custom600Headers
std::string Custom600Headers() const override
Custom headers to be sent to the fetch process.
Definition acquire-item.cc:2008
pkgAcqMetaIndex
An item that is responsible for downloading the meta-index {{{ file (i.e., Release) itself and verify...
Definition acquire-item.h:504
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:2205
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:2189
pkgAcqMetaIndex::DescURI
std::string DescURI() const override
A "descriptive" URI-like string.
Definition acquire-item.cc:2224
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:2156
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:537
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:551
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:2232
pkgAcqTransactionItem
baseclass for the indexes files to manage them all together
Definition acquire-item.h:373
pkgAcqTransactionItem::DescURI
std::string DescURI() const override
A "descriptive" URI-like string.
Definition acquire-item.h:396
pkgAcqTransactionItem::TransactionManager
pkgAcqMetaClearSig *const TransactionManager
TransactionManager.
Definition acquire-item.h:387
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:384
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:1193
pkgAcquire::Item::HashesRequired
virtual bool HashesRequired() const
Definition acquire-item.h:273
pkgAcquire::Item::RenameOnError
bool RenameOnError(RenameOnErrorState const state)
Rename failed file and set error.
Definition acquire-item.cc:1111
pkgAcquire::Item::IsTrusted
virtual bool IsTrusted() const
Definition acquire-item.cc:893
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:1054
pkgAcquire::Item::HashSum
std::string HashSum() const
Definition acquire-item.cc:1156
pkgAcquire::Item::GetOwner
pkgAcquire * GetOwner() const
Definition acquire-item.cc:883
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:316
pkgAcquire::Item::Dequeue
void Dequeue()
Remove this item from its owner's queue.
Definition acquire-item.cc:1105
pkgAcquire::Item::Finished
virtual void Finished()
Invoked by the worker when the download is completely done.
Definition acquire-item.cc:879
pkgAcquire::Item::Rename
bool Rename(std::string const &From, std::string const &To)
Rename a file without modifying its timestamp.
Definition acquire-item.cc:1089
pkgAcquire::Item::ID
unsigned long ID
A client-supplied unique identifier.
Definition acquire-item.h:113
pkgAcquire::Item::Cancelled
APT_HIDDEN void Cancelled()
Invoked by the worker when the download is cancelled before completion.
Definition acquire-item.cc:873
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:1163
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:1043
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:1068
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:313
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:1151
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:467
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:691
DiffInfo::patch_hashes
HashStringList patch_hashes
Definition acquire-item.h:699
DiffInfo::result_hashes
HashStringList result_hashes
Definition acquire-item.h:696
DiffInfo::download_hashes
HashStringList download_hashes
Definition acquire-item.h:702
DiffInfo::file
std::string file
Definition acquire-item.h:693
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