aboutsummaryrefslogtreecommitdiffstats
path: root/package/opkg/patches/008-fix_parsing_insanity.patch
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2009-10-22 17:16:13 +0000
committerJo-Philipp Wich <jow@openwrt.org>2009-10-22 17:16:13 +0000
commited2eed7b64e1b21ccdab0080a980709defa5ac8c (patch)
tree2e405d195b96829d45a4f5cc299952634ea64c13 /package/opkg/patches/008-fix_parsing_insanity.patch
parent28d3db089d0072f4c3ac292d16ef76a690cd81e9 (diff)
downloadupstream-ed2eed7b64e1b21ccdab0080a980709defa5ac8c.tar.gz
upstream-ed2eed7b64e1b21ccdab0080a980709defa5ac8c.tar.bz2
upstream-ed2eed7b64e1b21ccdab0080a980709defa5ac8c.zip
opkg: ignore Section, Source and Maintainer as well when ignoring descriptions, saves a few hundred KB memory
SVN-Revision: 18124
Diffstat (limited to 'package/opkg/patches/008-fix_parsing_insanity.patch')
-rw-r--r--package/opkg/patches/008-fix_parsing_insanity.patch6
1 files changed, 3 insertions, 3 deletions
diff --git a/package/opkg/patches/008-fix_parsing_insanity.patch b/package/opkg/patches/008-fix_parsing_insanity.patch
index 03e03a86f0..5e5c0085f6 100644
--- a/package/opkg/patches/008-fix_parsing_insanity.patch
+++ b/package/opkg/patches/008-fix_parsing_insanity.patch
@@ -522,11 +522,11 @@
+ break;
+
+ case 'S':
-+ if(isGenericFieldType("Section:", line))
++ if(isGenericFieldType("Section:", line) && !no_desc)
+ pkg->section = parseGenericFieldType("Section", line);
+ else if(isGenericFieldType("Size:", line))
+ pkg->size = parseGenericFieldType("Size", line);
-+ else if(isGenericFieldType("Source:", line))
++ else if(isGenericFieldType("Source:", line) && !no_desc)
+ pkg->source = parseGenericFieldType("Source", line);
+ else if(isGenericFieldType("Status", line))
+ parseStatus(pkg, line);
@@ -546,7 +546,7 @@
+ let's parse it either way */
+ else if(isGenericFieldType("MD5Sum:", line))
+ pkg->md5sum = parseGenericFieldType("MD5Sum", line);
-+ else if(isGenericFieldType("Maintainer", line))
++ else if(isGenericFieldType("Maintainer", line) && !no_desc)
+ pkg->maintainer = parseGenericFieldType("Maintainer", line);
+ break;
+