-
Notifications
You must be signed in to change notification settings - Fork 44
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
## Problem The call to the sotware service to check for the availability of a package is mocked and always returns true, assuming the package is always available. Of course, the availability of a package depends of the currently selected product. ## Solution Perform a D-Bus call to the software service in order to know if a package is available. Note: This change exposes a problem in our services. Asking for the product availability should be done once the software proposal is done, otherwise the result is not reliable at all, see #1005. For example, the TPM option in the storage settings could not appear until the software service has finished, see #995. ## Testing * Added new unit tests * Tested manually
- Loading branch information
Showing
11 changed files
with
162 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,28 @@ | ||
Override directory to redirect some yast modules to use D-Bus methods. It is just temporary workaround for POC. | ||
This directory contains some redefinitions of YaST modules in order to call to D-Bus methods instead | ||
of executing the actual code of the module. | ||
|
||
# Why is this needed? | ||
|
||
Agama relies on YaST code and YaST usually works as a single process. By contrast, Agama works as a | ||
set of different processes (software service, storage service, etc), and each service runs its own | ||
YaST instance. | ||
|
||
Having different YaST instances implies that the information is scattered in different processes. | ||
For example, only the YaST instance in the software service has the information about the software | ||
configuration. This means that other YaST instances need to ask to the software YaST instance for | ||
the information. | ||
|
||
# How to communicate among YaST instances | ||
|
||
A YaST instance can get information from other instance by doing a D-Bus call to the service running | ||
such an instance. For example, the YaST instance in the storage service has to call to the D-Bus API | ||
of the software service instead of directly calling to the software module code. To achieve that, | ||
the storage service replaces the implementation of the YaST software module by its own | ||
implementation which uses D-Bus calls. | ||
|
||
# How to replace a YaST module | ||
|
||
The code replacement of the YaST modules is done by means of the *Y2DIR* mechanism of YaST. When a | ||
service is started (check *agamactl* script), the YaST modules redefined by the service (under | ||
*lib/agama/dbus/y2dir/*) are added to the *Y2DIR* environment variable. YaST takes precedence of the | ||
paths at *Y2DIR*, so these files will be loaded instead of the files originally delivered by YaST. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,9 @@ | ||
------------------------------------------------------------------- | ||
Thu Jan 18 14:55:36 UTC 2024 - José Iván López González <[email protected]> | ||
|
||
- Add support to check availability of a package | ||
(gh#openSUSE/agama#1004). | ||
|
||
------------------------------------------------------------------- | ||
Thu Jan 18 08:35:01 UTC 2024 - Ancor Gonzalez Sosa <[email protected]> | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters