Closed ancorgs closed 2 years ago
:heavy_check_mark: Public Jenkins job #385 successfully finished :heavy_check_mark: Created OBS submit request #1006698
:heavy_check_mark: Internal Jenkins job #209 successfully finished :heavy_check_mark: Created IBS submit request #281062
Problem
When trying to open certain deprecated log files, the
view_anymsg
client may suggest to installyast2-journal
. It basically does the following:journal
should be called instead.journal
is not installed, it installs it (if possible).journal
unless is not there and installation failed.That mechanism is quite broken when
view_anymsg
is containerized. The root of the problem is thatview_anymsg
relies onPackage.Install("yast2-journal")
without previously checking whether the client is already there. Since YaST's package manager checks for packages in the host system, it concludesyast2-journal
is not available and the whole process fails even if thejournal
client is actually part of the same container.Solution
Check for the existence of the
journal
client before resorting toPackage.Install
. If that client is included in the container (which is always the case in the official YaST containers), then everything will work. If the client is there then there is no need to check for the package.NOTE: if the container does not contain the
journal
client then this pull request fixes nothing and the current (broken) behavior remains. But that's a theoretical problem because all the official YaST containers includeyast2-journal
.Testing
journal
client opens correctly).