Mailinglist Archive: yast-devel (91 mails)

< Previous Next >
[yast-devel] new classes in Yast2 - Execute and TargetFile
Hi,
I happily announce that today was merged two new features to yast2.rpm.

The first one is Execute class. It is basically wrapper around Cheetah
library with all its features[1]. What wrapper did is basically
1) set yast logger
2) in on_target varient operate on chroot specified by destdir option
( can change in future to parse real chroot specified in WFM call )
3) open report popup if command failed

for implementation see [2] and for example usage see [3].

The second one is TargetFile which is mainly useful with new CFA gem.
It adds default file handler to CFA that respect changed root ( so if
something need to be done really locally it have to specify default
file handler to ::File ).[4]

[1]
https://github.com/openSUSE/cheetah
[2]
https://github.com/yast/yast-yast2/blob/master/library/system/src/lib/yast2/execute.rb
[3]
https://github.com/yast/yast-bootloader/blob/7c2e08823fdbf3b951fb183188d9867fbb807089/src/lib/bootloader/sections.rb#L44
[4]
https://github.com/yast/yast-yast2/blob/master/library/system/src/lib/yast2/target_file.rb
--
To unsubscribe, e-mail: yast-devel+unsubscribe@xxxxxxxxxxxx
To contact the owner, e-mail: yast-devel+owner@xxxxxxxxxxxx

< Previous Next >
This Thread
  • No further messages