-
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.
fix(service): fix the return value of ListRepositories (#1930)
## Problem `ListRepositories` D-Bus method just crashes. It is expected to return an array with contains the return value as its first element. However, when there are no repositories, it just returns an empty array. It causes Ruby D-Bus to fail because it cannot serialize a `nil` value. ## Solution Fix the return value. For comparison, you can check the following `ListPatterns` method. ## Testing - _Tested manually_
- Loading branch information
Showing
2 changed files
with
10 additions
and
4 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,9 @@ | ||
------------------------------------------------------------------- | ||
Tue Jan 21 19:11:04 UTC 2025 - Imobach Gonzalez Sosa <[email protected]> | ||
|
||
- Fix the ListRepositories D-Bus method to return the proper value | ||
instead of crashing the service (gh#agama-project/agama#1930). | ||
|
||
------------------------------------------------------------------- | ||
Mon Jan 20 16:44:45 UTC 2025 - Ladislav Slezák <[email protected]> | ||
|
||
|