iOffset = Tags.Offset();
while (Tags.Step(Section) == true)
{
+ const char *Start;
+ const char *Stop;
+
+ if (Section.Find("Package",Start,Stop) == false) {
+ _error->Warning("Encountered a section with no Package: header");
+ continue;
+ }
+
/* See if this is the correct Architecture, if it isn't then we
drop the whole section. A missing arch tag only happens (in theory)
inside the Status file, so that is a positive return */
- const char *Start;
- const char *Stop;
+
if (Section.Find("Architecture",Start,Stop) == false)
return true;