Extract architecture from package file

This commit is contained in:
Ingo Weinhold 2011-06-27 06:51:02 +02:00
parent eadc3c844d
commit ba926f3554

View File

@ -296,6 +296,14 @@ struct Volume::PackageLoaderContentHandler : BPackageContentHandler {
break;
}
case B_PACKAGE_INFO_ARCHITECTURE:
if (value.unsignedInt >= B_PACKAGE_ARCHITECTURE_ENUM_COUNT)
RETURN_ERROR(B_BAD_VALUE);
fPackage->SetArchitecture(
(BPackageArchitecture)value.unsignedInt);
break;
case B_PACKAGE_INFO_PROVIDES:
{
// create a version object, if a version is specified