diff options
author | Sam Bingner <sam@bingner.com> | 2020-04-10 13:51:07 -1000 |
---|---|---|
committer | Sam Bingner <sam@bingner.com> | 2020-06-08 00:19:37 -1000 |
commit | 42f0c28ce2b2800a3e93bd7cadd242d5b8a55175 (patch) | |
tree | 464386ba351dd1a8aa0f10c02e5b5e9a0738d97d | |
parent | 79f46497784bdc872b89737bfabad2c55fe9afaf (diff) |
Fix my patches to compile for armv6 - still needs work
-rw-r--r-- | MobileCydia.mm | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/MobileCydia.mm b/MobileCydia.mm index 3a1bd2c..1e9e4fa 100644 --- a/MobileCydia.mm +++ b/MobileCydia.mm @@ -2907,7 +2907,11 @@ struct PackageNameOrdering : return @"REINSTALL"; else*/ switch (state.Status) { case -1: +#ifndef __arm__ return [database_ cache].Policy->GetCandidateVer(iterator_)==state.CandidateVerIter([database_ cache])?@"UPGRADE":@"DOWNGRADE"; +#else + return @"DOWNGRADE"; +#endif case 0: return @"INSTALL"; case 1: @@ -4866,7 +4870,11 @@ bool DepSubstrate(const pkgCache::VerIterator &iterator) { else if (!state.Delete() && (state.iFlags & pkgDepCache::ReInstall) == pkgDepCache::ReInstall) [reinstalls addObject:name]; // XXX: move before previous if +#ifndef __arm__ else if (state.Upgrade() || (state.Downgrade() && state.CandidateVerIter(cache) == cache.Policy->GetCandidateVer(iterator))) +#else + else if (state.Upgrade()) +#endif [upgrades addObject:name]; else if (state.Downgrade()) [downgrades addObject:name]; |