The code was using FinalFile before but we only test the existance of DestFile so we use that instead.
@@ -2480,7 +2480,7 @@ bool pkgAcqArchive::QueueNext()
else
{
PartialSize = Buf.st_size;
- ChangeOwnerAndPermissionOfFile("pkgAcqArchive::QueueNext", FinalFile.c_str(), "_apt", "root", 0600);
+ ChangeOwnerAndPermissionOfFile("pkgAcqArchive::QueueNext", DestFile.c_str(), "_apt", "root", 0600);
}