-
-
Notifications
You must be signed in to change notification settings - Fork 51
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use a separate system deployer in unknown systems
Instead of defaulting to apt.
- Loading branch information
Showing
3 changed files
with
46 additions
and
7 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
package Alire.Origins.Deployers.System.Unknown is | ||
|
||
type Deployer is new Deployers.System.Deployer with null record; | ||
|
||
overriding | ||
function Already_Installed (This : Deployer) return Boolean | ||
is (raise Program_Error with "Should be unreachable"); | ||
|
||
overriding | ||
function Detect (This : Deployer) | ||
return Version_Outcomes.Outcome | ||
is (Version_Outcomes.Outcome_Failure | ||
("unknown distro, cannot detect versions of system packages")); | ||
|
||
overriding | ||
function Install (This : Deployer) return Outcome | ||
is (Outcome_Failure ("unknown distro, no system deployer")); | ||
|
||
overriding | ||
function Executable_Name (This : Deployer) return String | ||
is ("nonexistent-package-manager-that-alire-musnt-find"); | ||
|
||
end Alire.Origins.Deployers.System.Unknown; |
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