Skip to content

Commit

Permalink
[main] Adding --assumeyes for TDNF calls. (#2641) (#2642)
Browse files Browse the repository at this point in the history
  • Loading branch information
PawelWMS authored Apr 1, 2022
1 parent decb4c8 commit 440351d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion toolkit/tools/imagegen/installutils/installutils.go
Original file line number Diff line number Diff line change
Expand Up @@ -580,7 +580,7 @@ func initializeTdnfConfiguration(installRoot string) (err error) {

logger.Log.Debugf("Downloading '%s' package to a clean RPM root under '%s'.", releasePackage, installRoot)

err = shell.ExecuteLive(squashErrors, "tdnf", "download", "--alldeps", "--destdir", installRoot, releasePackage)
err = shell.ExecuteLive(squashErrors, "tdnf", "download", "--assumeyes", "--alldeps", "--destdir", installRoot, releasePackage)
if err != nil {
logger.Log.Errorf("Failed to prepare the RPM database on downloading the 'mariner-release' package: %v", err)
return
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -269,6 +269,7 @@ func (r *RpmRepoCloner) Clone(cloneDeps bool, packagesToClone ...*pkgjson.Packag

logger.Log.Debugf("Cloning: %s", pkgName)
args := []string{
"--assumeyes",
"--destdir",
chrootDownloadDir,
pkgName,
Expand Down Expand Up @@ -301,6 +302,7 @@ func (r *RpmRepoCloner) WhatProvides(pkgVer *pkgjson.PackageVer) (packageNames [
baseArgs := []string{
"provides",
provideQuery,
"--assumeyes",
fmt.Sprintf("--disablerepo=%s", allRepoIDs),
}

Expand Down Expand Up @@ -423,6 +425,7 @@ func (r *RpmRepoCloner) ClonedRepoContents() (repoContents *repocloner.RepoConte
tdnfArgs := []string{
"list",
"ALL",
"--assumeyes",
fmt.Sprintf("--disablerepo=%s", allRepoIDs),
fmt.Sprintf("--enablerepo=%s", checkedRepoID),
}
Expand Down

0 comments on commit 440351d

Please sign in to comment.