* 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:
parent
a0b1d631cc
commit
2a8ffa8805
@ -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;
|
||||
}
|
||||
|
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user