summaryrefslogtreecommitdiff
path: root/data/_apt7/mmap.diff
diff options
context:
space:
mode:
authorJay Freeman <saurik@saurik.com>2010-02-22 20:57:01 +0000
committerJay Freeman <saurik@saurik.com>2010-02-22 20:57:01 +0000
commitb4eda46583b6a9c77b29e033dfdef83488f5546f (patch)
treebdad569c577d83ba7cd407b6e0bf04b67b0fe0fd /data/_apt7/mmap.diff
parent6c54e22d2c79a2f644f672ab06c29a060387443a (diff)
Ported to APT 0.7.25.3.
git-svn-id: http://svn.telesphoreo.org/trunk@700 514c082c-b64e-11dc-b46d-3d985efe055d
Diffstat (limited to 'data/_apt7/mmap.diff')
-rw-r--r--data/_apt7/mmap.diff6
1 files changed, 3 insertions, 3 deletions
diff --git a/data/_apt7/mmap.diff b/data/_apt7/mmap.diff
index 06f4dbac0..1b745e8b5 100644
--- a/data/_apt7/mmap.diff
+++ b/data/_apt7/mmap.diff
@@ -61,7 +61,7 @@ diff -ru apt-0.7.20.2/apt-pkg/tagfile.cc apt-0.7.20.2+iPhone/apt-pkg/tagfile.cc
- End = Start + EndSize;
- return true;
-}
--
+- /*}}}*/
// TagFile::Step - Advance to the next section /*{{{*/
// ---------------------------------------------------------------------
/* If the Section Scanner fails we refill the buffer and try again.
@@ -163,7 +163,7 @@ diff -ru apt-0.7.20.2/apt-pkg/tagfile.cc apt-0.7.20.2+iPhone/apt-pkg/tagfile.cc
+ Stop = End;
+ goto end;
+ }
-
+
for (; Stop+1 < End && Stop[1] == '\r'; Stop++);
// Double newline marks the end of the record
@@ -172,7 +172,7 @@ diff -ru apt-0.7.20.2/apt-pkg/tagfile.cc apt-0.7.20.2+iPhone/apt-pkg/tagfile.cc
+ if (Stop+1 == End || Stop[1] == '\n')
+ end: {
Indexes[TagCount] = Stop - Section;
- for (; Stop < End && (Stop[0] == '\n' || Stop[0] == '\r'); Stop++);
+ TrimRecord(false,End);
return true;
diff -ru apt-0.7.20.2/apt-pkg/tagfile.h apt-0.7.20.2+iPhone/apt-pkg/tagfile.h
--- apt-0.7.20.2/apt-pkg/tagfile.h 2009-02-07 15:09:35.000000000 +0000