|
@@ -283,7 +283,6 @@ class pkgAcquire::Item : public WeakPointable
|
|
|
/** \return \b true if this object is being fetched from a trusted source. */
|
|
/** \return \b true if this object is being fetched from a trusted source. */
|
|
|
virtual bool IsTrusted() const {return false;};
|
|
virtual bool IsTrusted() const {return false;};
|
|
|
|
|
|
|
|
- // report mirror problems
|
|
|
|
|
/** \brief Report mirror problem
|
|
/** \brief Report mirror problem
|
|
|
*
|
|
*
|
|
|
* This allows reporting mirror failures back to a centralized
|
|
* This allows reporting mirror failures back to a centralized
|
|
@@ -293,7 +292,6 @@ class pkgAcquire::Item : public WeakPointable
|
|
|
*/
|
|
*/
|
|
|
void ReportMirrorFailure(std::string FailCode);
|
|
void ReportMirrorFailure(std::string FailCode);
|
|
|
|
|
|
|
|
-
|
|
|
|
|
/** \brief Initialize an item.
|
|
/** \brief Initialize an item.
|
|
|
*
|
|
*
|
|
|
* Adds the item to the list of items known to the acquire
|
|
* Adds the item to the list of items known to the acquire
|
|
@@ -947,7 +945,6 @@ class pkgAcqIndex : public pkgAcqBaseIndex
|
|
|
*/
|
|
*/
|
|
|
std::string CompressionExtension;
|
|
std::string CompressionExtension;
|
|
|
|
|
|
|
|
-
|
|
|
|
|
/** \brief Do the changes needed to fetch via AptByHash (if needed) */
|
|
/** \brief Do the changes needed to fetch via AptByHash (if needed) */
|
|
|
void InitByHashIfNeeded(const std::string MetaKey);
|
|
void InitByHashIfNeeded(const std::string MetaKey);
|
|
|
|
|
|
|
@@ -961,11 +958,15 @@ class pkgAcqIndex : public pkgAcqBaseIndex
|
|
|
/** \brief Schedule file for verification after a IMS hit */
|
|
/** \brief Schedule file for verification after a IMS hit */
|
|
|
void ReverifyAfterIMS();
|
|
void ReverifyAfterIMS();
|
|
|
|
|
|
|
|
|
|
+ /** \brief Validate the downloaded index file */
|
|
|
|
|
+ bool ValidateFile(const std::string &FileName);
|
|
|
|
|
+
|
|
|
public:
|
|
public:
|
|
|
|
|
|
|
|
// Specialized action members
|
|
// Specialized action members
|
|
|
virtual void Failed(std::string Message,pkgAcquire::MethodConfig *Cnf);
|
|
virtual void Failed(std::string Message,pkgAcquire::MethodConfig *Cnf);
|
|
|
- virtual void Done(std::string Message,unsigned long long Size, HashStringList const &Hashes,
|
|
|
|
|
|
|
+ virtual void Done(std::string Message,unsigned long long Size,
|
|
|
|
|
+ HashStringList const &Hashes,
|
|
|
pkgAcquire::MethodConfig *Cnf);
|
|
pkgAcquire::MethodConfig *Cnf);
|
|
|
virtual std::string Custom600Headers() const;
|
|
virtual std::string Custom600Headers() const;
|
|
|
virtual std::string DescURI() {return Desc.URI;};
|
|
virtual std::string DescURI() {return Desc.URI;};
|