Dear Richard and Luca,

Thank you for your feedback. I will take it into consideration.

I understand that "XXX != False" and "not XXX" have different interpretations 
in Python.

The expression "XXX != False" only evaluates to True if XXX is not equal to 
False.

This means that if skip-kernel-install is None, the condition will be False.

On the other hand, "not XXX" evaluates to True if XXX is falsy, which includes 
None, False, 0, empty string, etc.

This is why I used it in my code, as I wanted to consider the case where 
skip-kernel-install is None.

Therefore, if skip-kernel-install is not provided, its value will be None, and 
the condition will be True, which means the kernel image will be installed.

However, if we want to enforce the requirement for the user to always provide 
the parameter skip-kernel-install with either the value true or false, we can 
make use (!= false , == true).

Let me know what suits us best in this case .

Kindest regards .

Kareem Zarka.
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#176818): 
https://lists.openembedded.org/g/openembedded-core/message/176818
Mute This Topic: https://lists.openembedded.org/mt/96791012/21656
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to