From: Jo-Philipp Wich Date: Thu, 22 Oct 2009 17:16:13 +0000 (+0000) Subject: [package] opkg: ignore Section, Source and Maintainer as well when ignoring descripti... X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=b60699ef7e1dec45bd40ff1647948bb657ed55db;p=openwrt%2Fsvn-archive%2Farchive.git [package] opkg: ignore Section, Source and Maintainer as well when ignoring descriptions, saves a few hundred KB memory SVN-Revision: 18124 --- 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; +