diff --git a/toolkit/tools/internal/packagerepo/repocloner/rpmrepocloner/rpmrepocloner.go b/toolkit/tools/internal/packagerepo/repocloner/rpmrepocloner/rpmrepocloner.go index bad733feae5..ec03b5bfb42 100644 --- a/toolkit/tools/internal/packagerepo/repocloner/rpmrepocloner/rpmrepocloner.go +++ b/toolkit/tools/internal/packagerepo/repocloner/rpmrepocloner/rpmrepocloner.go @@ -267,10 +267,15 @@ func (r *RpmRepoCloner) Clone(cloneDeps bool, packagesToClone ...*pkgjson.Packag for _, pkg := range packagesToClone { pkgName := convertPackageVersionToTdnfArg(pkg) + downloadDir := chrootDownloadDir + if !buildpipeline.IsRegularBuild() { + downloadDir = cacheRepoDir + } + logger.Log.Debugf("Cloning: %s", pkgName) args := []string{ "--destdir", - chrootDownloadDir, + downloadDir, pkgName, }