From 6b22dd99c8021cd2089fee965e67714cfeed0298 Mon Sep 17 00:00:00 2001 From: Philippe Caseiro Date: Wed, 29 Jun 2022 16:32:34 +0200 Subject: [PATCH] Try 07 --- pkg/templater/repo-apk.go | 4 ---- 1 file changed, 4 deletions(-) diff --git a/pkg/templater/repo-apk.go b/pkg/templater/repo-apk.go index c531aca..35f3656 100644 --- a/pkg/templater/repo-apk.go +++ b/pkg/templater/repo-apk.go @@ -28,14 +28,12 @@ func (hr *APKRepository) urlIsPresent() (bool, error) { line := 1 for scanner.Scan() { - fmt.Printf("DBG:%s:%s:\n", scanner.Text(), hr.URL) if strings.Contains(scanner.Text(), hr.URL) { return true, nil } line++ } - fmt.Printf("END\n") if err := scanner.Err(); err != nil { return false, err @@ -52,11 +50,9 @@ func (hr *APKRepository) Add() error { } if URLIsPresent { - fmt.Printf("DEBUG %v\n", URLIsPresent) return nil } else { data := fmt.Sprintf("%s\n", hr.URL) - fmt.Printf("DEBUG %v", data) file, err := os.OpenFile(APKConfigFile, os.O_APPEND|os.O_WRONLY, 0644) if err != nil { return err