-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ref: fix remote origin management (#93)
* ref: fix remote origin management When a flatpakref file does not provide a SuggestRemoteName key, create an origin from the Name field. This change implements the algorithm found in flatpak's create_origin_remote_config() function. Remove the option of setting an origin label in packageOption. This option was poorly documented, and its default behavior - labeling as "flathub" if no origin was set - would break system activation. Test if the remote exists before deleting it. This guards against two potential issues: 1. A Flatpakref might install non-enumerable remotes that are automatically deleted when the application is uninstalled, so attempting to delete them without checking could cause errors. 2. Users might manually delete apps/remotes, which could impact nix-flatpak state; checking prevents errors if the remote has already been removed.
- Loading branch information
Showing
5 changed files
with
54 additions
and
15 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