* Break parsing loop if PkgA is encountered. This helps with QEmu pkg.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29216 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Jérôme Duval 2009-02-15 17:05:36 +00:00
parent a0b1d631cc
commit 2a8ffa8805
2 changed files with 6 additions and 3 deletions

View File

@ -1055,8 +1055,11 @@ PackageInfo::Parse()
}
element = P_NONE;
}
else {
} else if (!memcmp(buffer, "PkgA", 5)) {
parser_debug("PkgA\n");
break;
} else {
fprintf(stderr, "Unknown file tag %s", buffer);
fStatus = B_ERROR;
return fStatus;
}

View File

@ -337,7 +337,7 @@ PkgDirectory::_ParseAttribute(uint8 *buffer, BNode *node, char **attrName,
fPackage->Read(*attrName, length);
(*attrName)[length] = 0;
parser_debug(" (%d) = %s\n", length, *attrName);
parser_debug(" (%ld) = %s\n", length, *attrName);
}
else if (!memcmp(buffer, "BeAT", 5)) {
if (!*attrStarted) {