diff options
author | CoolStar <coolstarorganization@gmail.com> | 2018-05-23 11:41:58 -0700 |
---|---|---|
committer | Sam Bingner <sam@bingner.com> | 2019-12-26 15:12:15 -1000 |
commit | dce63b96e54533cb35d6618d200701363d5b6e44 (patch) | |
tree | 3720f35b8e72e18f782c84ce4213e59fb18c4d0c /apt-pkg/acquire-item.cc | |
parent | 0a4d0898091e9a6ff584f14d310a13f61fb3d9a3 (diff) |
Backwards compatibility patches for Cydia repos
Diffstat (limited to 'apt-pkg/acquire-item.cc')
-rw-r--r-- | apt-pkg/acquire-item.cc | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/apt-pkg/acquire-item.cc b/apt-pkg/acquire-item.cc index bb3bc1b56..09b8954b6 100644 --- a/apt-pkg/acquire-item.cc +++ b/apt-pkg/acquire-item.cc @@ -257,7 +257,7 @@ static bool APT_NONNULL(3, 4, 5) AllowInsecureRepositories(InsecureType const ms if (TargetIsAllowedToBe(TransactionManager->Target, msg) == true) { - MessageInsecureRepository(false, msgstr, repo); + //MessageInsecureRepository(false, msgstr, repo); return true; } @@ -1608,7 +1608,7 @@ void pkgAcqMetaClearSig::QueueIndexes(bool const verify) /*{{{*/ } // optional targets that we do not have in the Release file are skipped - if (hasHashes == true && Target.IsOptional) + if (Target.IsOptional) { new CleanupItem(Owner, TransactionManager, Target); continue; @@ -1724,6 +1724,12 @@ void pkgAcqMetaClearSig::QueueIndexes(bool const verify) /*{{{*/ } else { + + if (Target.IsOptional) + { + new CleanupItem(Owner, TransactionManager, Target); + continue; + } // if we have no file to patch, no point in trying trypdiff &= (GetExistingFilename(GetFinalFileNameFromURI(Target.URI)).empty() == false); } |