mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-11-27 17:55:55 +02:00
[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
This commit is contained in:
parent
80d3676987
commit
e94a2e1312
@ -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;
|
||||
+
|
||||
|
Loading…
Reference in New Issue
Block a user