summaryrefslogtreecommitdiff
path: root/data/_apt7
diff options
context:
space:
mode:
authorJay Freeman <saurik@saurik.com>2010-02-22 17:48:05 +0000
committerJay Freeman <saurik@saurik.com>2010-02-22 17:48:05 +0000
commit6c54e22d2c79a2f644f672ab06c29a060387443a (patch)
tree28078333efcf39923b7d27e3211adee8efd52bd6 /data/_apt7
parent476f7c611e66acb08094fda54540d116b62d52cb (diff)
I am sick of that Package: error.
git-svn-id: http://svn.telesphoreo.org/trunk@699 514c082c-b64e-11dc-b46d-3d985efe055d
Diffstat (limited to 'data/_apt7')
-rw-r--r--data/_apt7/tolerance.diff24
1 files changed, 24 insertions, 0 deletions
diff --git a/data/_apt7/tolerance.diff b/data/_apt7/tolerance.diff
new file mode 100644
index 000000000..ce2ff0adb
--- /dev/null
+++ b/data/_apt7/tolerance.diff
@@ -0,0 +1,24 @@
+diff -ru apt-0.7.20.2/apt-pkg/deb/deblistparser.cc apt-0.7.20.2+iPhone/apt-pkg/deb/deblistparser.cc
+--- apt-0.7.20.2/apt-pkg/deb/deblistparser.cc 2010-02-22 08:57:37.000000000 +0000
++++ apt-0.7.20.2+iPhone/apt-pkg/deb/deblistparser.cc 2010-02-22 09:40:28.000000000 +0000
+@@ -643,11 +643,18 @@
+ iOffset = Tags.Offset();
+ while (Tags.Step(Section) == true)
+ {
++ const char *Start;
++ const char *Stop;
++
++ if (Section.Find("Package",Start,Stop) == false) {
++ _error->Warning("Encountered a section with no Package: header");
++ continue;
++ }
++
+ /* See if this is the correct Architecture, if it isn't then we
+ drop the whole section. A missing arch tag only happens (in theory)
+ inside the Status file, so that is a positive return */
+- const char *Start;
+- const char *Stop;
++
+ if (Section.Find("Architecture",Start,Stop) == false)
+ return true;
+