Package Kit: Fix logic reversal in PackageInfoStringBuilder.
This function is used when serializing a BPackageInfo object, which is not done very often, and flags are used even less often. But both of these things are done for the system packages, as they have the "system_package" flag set, and are processed by "update_package_requires", and so this meant that the "system_package" flag was turned into the "approve_license" flag.
This commit is contained in:
parent
5753ed5544
commit
0779294800
@ -64,9 +64,9 @@ struct BPackageInfo::StringBuilder {
|
||||
_Write(attribute);
|
||||
_Write('\t');
|
||||
|
||||
if ((flags & B_PACKAGE_FLAG_APPROVE_LICENSE) == 0)
|
||||
if ((flags & B_PACKAGE_FLAG_APPROVE_LICENSE) != 0)
|
||||
_Write(" approve_license");
|
||||
if ((flags & B_PACKAGE_FLAG_SYSTEM_PACKAGE) == 0)
|
||||
if ((flags & B_PACKAGE_FLAG_SYSTEM_PACKAGE) != 0)
|
||||
_Write(" system_package");
|
||||
|
||||
_Write('\n');
|
||||
|
Loading…
Reference in New Issue
Block a user