Skip to content

Commit 460aa37

Browse files
Cherng Xi Chiachrngc
authored andcommitted
Removed debug codes added by accident
1 parent 5d58e4e commit 460aa37

1 file changed

Lines changed: 0 additions & 26 deletions

File tree

internal/ospackage/debutils/download.go

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -369,11 +369,6 @@ func MatchRequested(requests []string, all []ospackage.PackageInfo) ([]ospackage
369369
gotMissingPkg := false
370370

371371
for _, want := range requests {
372-
w := strings.TrimSpace(want)
373-
if w != want {
374-
log.Warnf("MatchRequested(): trimming request whitespace: raw=%q trimmed=%q", want, w)
375-
}
376-
want = w
377372
if pkg, found := ResolveTopPackageConflicts(want, all); found {
378373
out = append(out, pkg)
379374
} else {
@@ -460,33 +455,12 @@ func DownloadPackagesComplete(pkgList []string, destDir, dotFile string, pkgSour
460455
}
461456

462457
// Fetch the entire user repos package list
463-
464-
log.Infof("UserPackages(): starting. UserRepo entries=%d, Architecture=%q", len(UserRepo), Architecture)
465-
466458
userpkg, err := UserPackages()
467459
if err != nil {
468460
log.Debugf("getting user packages failed: %v", err)
469461
return downloadPkgList, nil, fmt.Errorf("user package fetch failed: %w", err)
470462
}
471-
472-
log.Infof("UserPackages(): done. returned %d packages", len(userpkg))
473-
474463
all = append(all, userpkg...)
475-
log.Infof("Total package index size after merging base+user repos: %d", len(all))
476-
477-
want := "login"
478-
found := false
479-
for _, p := range all {
480-
if p.Name == want {
481-
found = true
482-
log.Infof("Package index contains %q: version=%q url=%q", want, p.Version, p.URL)
483-
break
484-
}
485-
}
486-
487-
if !found {
488-
log.Warnf("Package index does NOT contain %q (after base+user repo merge)", want)
489-
}
490464

491465
// Match the packages in the template against all the packages
492466
req, err := MatchRequested(pkgList, all)

0 commit comments

Comments
 (0)