Drop internal/common/distro.go in favor of osbuild/images
Drop `common.GetHostDistroName()` implementation and use `distro.GetHostDistroName()` from the osbuild/images instead. Signed-off-by: Tomáš Hozza <thozza@redhat.com>
This commit is contained in:
parent
fb1b27c0ef
commit
c4e5ab5aca
5 changed files with 5 additions and 110 deletions
|
|
@ -161,7 +161,7 @@ func New(repoPaths []string, stateDir string, solver *dnfjson.BaseSolver, df *di
|
|||
logger = log.New(os.Stdout, "", 0)
|
||||
}
|
||||
|
||||
hostDistroName, _, _, err := common.GetHostDistroName()
|
||||
hostDistroName, err := distro.GetHostDistroName()
|
||||
if err != nil {
|
||||
return nil, fmt.Errorf("failed to read host distro information")
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue