opkg: ignore Section, Source and Maintainer as well when ignoring descriptions, saves a few hundred KB memory

SVN-Revision: 18124
This commit is contained in:
Jo-Philipp Wich 2009-10-22 17:16:13 +00:00
parent 28d3db089d
commit ed2eed7b64
1 changed files with 3 additions and 3 deletions

View File

@ -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;
+