diff --git a/src/add-ons/kernel/file_systems/packagefs/Volume.cpp b/src/add-ons/kernel/file_systems/packagefs/Volume.cpp index c000130e10..a1b300fc7e 100644 --- a/src/add-ons/kernel/file_systems/packagefs/Volume.cpp +++ b/src/add-ons/kernel/file_systems/packagefs/Volume.cpp @@ -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