From 7a49a6c2ce818125770a5a63fd00159340300172 Mon Sep 17 00:00:00 2001 From: Pawel Winogrodzki Date: Tue, 19 Apr 2022 17:31:55 -0700 Subject: [PATCH] [main] Build break workaround. (#2788) --- .../packagerepo/repocloner/rpmrepocloner/rpmrepocloner.go | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/toolkit/tools/internal/packagerepo/repocloner/rpmrepocloner/rpmrepocloner.go b/toolkit/tools/internal/packagerepo/repocloner/rpmrepocloner/rpmrepocloner.go index aac9310564b..24cb59ce3e9 100644 --- a/toolkit/tools/internal/packagerepo/repocloner/rpmrepocloner/rpmrepocloner.go +++ b/toolkit/tools/internal/packagerepo/repocloner/rpmrepocloner/rpmrepocloner.go @@ -268,10 +268,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, }