[package] opkg: ignore Section, Source and Maintainer as well when ignoring descripti...
authorJo-Philipp Wich <jow@openwrt.org>
Thu, 22 Oct 2009 17:16:13 +0000 (17:16 +0000)
committerJo-Philipp Wich <jow@openwrt.org>
Thu, 22 Oct 2009 17:16:13 +0000 (17:16 +0000)
SVN-Revision: 18124

package/opkg/patches/008-fix_parsing_insanity.patch

index 03e03a86f065f1e0fbaafcad2cdf14cafc9d9c31..5e5c0085f613faa1d212cb54885c01661a203602 100644 (file)
 +                                      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);
 +                                         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;
 +