Skip to content

Commit 7c47548

Browse files
committed
Restore download.go
Signed-off-by: Teoh Suh Haw <suh.haw.teoh@intel.com>
1 parent 4c4c2f0 commit 7c47548

File tree

1 file changed

+0
-15
lines changed

1 file changed

+0
-15
lines changed

internal/ospackage/debutils/download.go

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -368,15 +368,10 @@ func MatchRequested(requests []string, all []ospackage.PackageInfo) ([]ospackage
368368
var requestedPkgs []string
369369
gotMissingPkg := false
370370

371-
log.Debugf("MatchRequested: Searching for %d requested packages in %d available packages", len(requests), len(all))
372-
373371
for _, want := range requests {
374-
log.Debugf("MatchRequested: Looking for package '%s'", want)
375372
if pkg, found := ResolveTopPackageConflicts(want, all); found {
376-
log.Debugf("MatchRequested: Found package '%s' -> %s version %s", want, pkg.Name, pkg.Version)
377373
out = append(out, pkg)
378374
} else {
379-
log.Warnf("MatchRequested: Package '%s' NOT FOUND in repository metadata", want)
380375
requestedPkgs = append(requestedPkgs, want)
381376
log.Warnf("requested package '%q' not found in repo", want)
382377
gotMissingPkg = true
@@ -472,16 +467,6 @@ func DownloadPackagesComplete(pkgList []string, destDir, dotFile string, pkgSour
472467
if err != nil {
473468
return downloadPkgList, nil, fmt.Errorf("matching packages: %w", err)
474469
}
475-
476-
// DEBUG: Check if v4l2loopback-dkms is in the all packages list
477-
log.Debugf("Total packages available for matching: %d", len(all))
478-
for _, pkg := range all {
479-
if pkg.Name == "v4l2loopback-dkms" {
480-
log.Infof("DEBUG: Found v4l2loopback-dkms in repository metadata: version=%s, arch=%s", pkg.Version, pkg.Arch)
481-
break
482-
}
483-
}
484-
485470
log.Infof("matched a total of %d packages", len(req))
486471

487472
// Resolve the dependencies of the requested packages

0 commit comments

Comments
 (0)