|
@@ -1120,12 +1120,6 @@ void pkgAcqIndex::Done(string Message,unsigned long long Size,string Hash,
|
|
|
string FileName = LookupTag(Message,"Alt-Filename");
|
|
string FileName = LookupTag(Message,"Alt-Filename");
|
|
|
if (FileName.empty() == false)
|
|
if (FileName.empty() == false)
|
|
|
{
|
|
{
|
|
|
- // The files timestamp matches
|
|
|
|
|
- if (StringToBool(LookupTag(Message,"Alt-IMS-Hit"),false) == true)
|
|
|
|
|
- {
|
|
|
|
|
- ReverifyAfterIMS(FileName);
|
|
|
|
|
- return;
|
|
|
|
|
- }
|
|
|
|
|
Decompression = true;
|
|
Decompression = true;
|
|
|
Local = true;
|
|
Local = true;
|
|
|
DestFile += ".decomp";
|
|
DestFile += ".decomp";
|
|
@@ -1142,18 +1136,18 @@ void pkgAcqIndex::Done(string Message,unsigned long long Size,string Hash,
|
|
|
ErrorText = "Method gave a blank filename";
|
|
ErrorText = "Method gave a blank filename";
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ if (FileName == DestFile)
|
|
|
|
|
+ Erase = true;
|
|
|
|
|
+ else
|
|
|
|
|
+ Local = true;
|
|
|
|
|
+
|
|
|
// The files timestamp matches
|
|
// The files timestamp matches
|
|
|
- if (StringToBool(LookupTag(Message,"IMS-Hit"),false) == true)
|
|
|
|
|
|
|
+ if (!Local && StringToBool(LookupTag(Message,"IMS-Hit"),false) == true)
|
|
|
{
|
|
{
|
|
|
ReverifyAfterIMS(FileName);
|
|
ReverifyAfterIMS(FileName);
|
|
|
return;
|
|
return;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- if (FileName == DestFile)
|
|
|
|
|
- Erase = true;
|
|
|
|
|
- else
|
|
|
|
|
- Local = true;
|
|
|
|
|
-
|
|
|
|
|
string decompProg;
|
|
string decompProg;
|
|
|
|
|
|
|
|
// If we enable compressed indexes, queue for hash verification
|
|
// If we enable compressed indexes, queue for hash verification
|