diff options
author | jow <jow@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2009-10-22 17:16:13 +0000 |
---|---|---|
committer | jow <jow@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2009-10-22 17:16:13 +0000 |
commit | e94a2e1312d8792568ea44a912476ed63e8b20fd (patch) | |
tree | c5f442a43d98b66fa4384c39bd41393de1a3bf11 | |
parent | 80d3676987331e6974720e0caee55d5768aed643 (diff) |
[package] opkg: ignore Section, Source and Maintainer as well when ignoring descriptions, saves a few hundred KB memory
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@18124 3c298f89-4303-0410-b956-a3cf2f4a3e73
-rw-r--r-- | package/opkg/patches/008-fix_parsing_insanity.patch | 6 |
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 03e03a86f..5e5c0085f 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; + |