mirror of
https://github.com/taigrr/wails.git
synced 2026-04-02 05:08:54 -07:00
Fix package detection for solus
This commit is contained in:
@@ -210,8 +210,8 @@ func EOpkgInstalled(packageName string) (bool, error) {
|
||||
if eopkg == nil {
|
||||
return false, fmt.Errorf("cannot check dependencies: eopkg not found")
|
||||
}
|
||||
_, _, exitCode, _ := eopkg.Run("li", "|", "grep", "-w", packageName)
|
||||
return exitCode == 0, nil
|
||||
stdout, _, _, _ := eopkg.Run("info", packageName)
|
||||
return strings.HasPrefix(stdout, "Installed"), nil
|
||||
}
|
||||
|
||||
// PacmanInstalled uses pacman to see if a package is installed.
|
||||
|
||||
Reference in New Issue
Block a user