Extract architecture from package file
This commit is contained in:
parent
eadc3c844d
commit
ba926f3554
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user