[package] opkg: ignore Section, Source and Maintainer as well when ignoring descripti...
authorjow <jow@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Thu, 22 Oct 2009 17:16:13 +0000 (17:16 +0000)
committerjow <jow@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Thu, 22 Oct 2009 17:16:13 +0000 (17:16 +0000)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@18124 3c298f89-4303-0410-b956-a3cf2f4a3e73

package/opkg/patches/008-fix_parsing_insanity.patch

index 03e03a8..5e5c008 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;
 +
This page took 0.024163 seconds and 4 git commands to generate.