From: Jay Freeman (saurik) Date: Tue, 1 Mar 2011 04:00:29 +0000 (-0800) Subject: Add explanatory todo comments for state scan. X-Git-Tag: v1.1.0%b1~103 X-Git-Url: https://git.saurik.com/cydia.git/commitdiff_plain/f8d15be29e828985c2e114d5ed15ad1b83453af0?ds=inline Add explanatory todo comments for state scan. --- diff --git a/MobileCydia.mm b/MobileCydia.mm index d1568d72..0e396e93 100644 --- a/MobileCydia.mm +++ b/MobileCydia.mm @@ -4931,13 +4931,16 @@ bool DepSubstrate(const pkgCache::VerIterator &iterator) { if (state.NewInstall()) [installs addObject:name]; + // XXX: else if (state.Install()) else if (!state.Delete() && (state.iFlags & pkgDepCache::ReInstall) == pkgDepCache::ReInstall) [reinstalls addObject:name]; + // XXX: move before previous if else if (state.Upgrade()) [upgrades addObject:name]; else if (state.Downgrade()) [downgrades addObject:name]; else if (!state.Delete()) + // XXX: _assert(state.Keep()); continue; else if (special_r(name)) [issues_ addObject:[NSDictionary dictionaryWithObjectsAndKeys: