]> git.saurik.com Git - cydia.git/commitdiff
Consider removal of special packages a reportable error.
authorJay Freeman (saurik) <saurik@saurik.com>
Fri, 18 Feb 2011 06:31:42 +0000 (22:31 -0800)
committerJay Freeman (saurik) <saurik@saurik.com>
Fri, 18 Feb 2011 06:35:28 +0000 (22:35 -0800)
MobileCydia.mm

index 5d7cafa8f6fd3ea29369cfe01032ce0b786d7154..b53372b7430852e23bd52c3c313d267f211c7d7f 100644 (file)
@@ -4334,9 +4334,19 @@ bool DepSubstrate(const pkgCache::VerIterator &iterator) {
                 [downgrades addObject:name];
             else if (!state.Delete())
                 continue;
-            else if (special_r(name)) {
-                // XXX: sad
-            } else {
+            else if (special_r(name))
+                [issues_ addObject:[NSDictionary dictionaryWithObjectsAndKeys:
+                    [NSNull null], @"package",
+                    [NSArray arrayWithObjects:
+                        [NSDictionary dictionaryWithObjectsAndKeys:
+                            @"Conflicts", @"relation",
+                            name, @"package",
+                            [NSNull null], @"version",
+                            @"installed", @"reason",
+                        nil],
+                    nil], @"reasons",
+                nil]];
+            else {
                 if ([package essential])
                     remove = true;
                 [removes addObject:name];