[yast-devel] New Mode#auto method
Hi all, Yesterday I added a Mode#auto method which returns true when we're in autoinst or autoupgrade mode. The main reason for adding this new method is that we have many places when we should check for "Mode.autoinst || Mode.autoupgrade" and, sometimes, we forget about the last part (we have found some issues in yast2-kdump module because of that). Take into account that this method is in 'master' only and is not released yet. BTW, I added some tests for the Mode module. Regards, Imo PS: https://github.com/yast/yast-yast2/pull/396 -- Imobach González Sosa YaST Team at SUSE LINUX GmbH
Great. It is a good idea !!!! Gretings Stefan Am 27.08.2015 um 09:18 schrieb Imobach González Sosa:
Hi all,
Yesterday I added a Mode#auto method which returns true when we're in autoinst or autoupgrade mode.
The main reason for adding this new method is that we have many places when we should check for "Mode.autoinst || Mode.autoupgrade" and, sometimes, we forget about the last part (we have found some issues in yast2-kdump module because of that).
Take into account that this method is in 'master' only and is not released yet.
BTW, I added some tests for the Mode module.
Regards, Imo
-- To unsubscribe, e-mail: yast-devel+unsubscribe@opensuse.org To contact the owner, e-mail: yast-devel+owner@opensuse.org
participants (2)
-
Imobach González Sosa
-
Stefan Schubert