This commit is contained in:
Philippe Caseiro 2022-06-30 10:00:45 +02:00
parent b7b3b0bb29
commit b4f913c707
1 changed files with 2 additions and 1 deletions

View File

@ -30,7 +30,7 @@ func (hr *APKRepository) urlIsPresent() (bool, error) {
line := 1 line := 1
for scanner.Scan() { for scanner.Scan() {
if strings.Contains(scanner.Text(), hr.URL) { if strings.Contains(scanner.Text(), hr.URL) {
log.Printf("Repository %s already present\n", hr.Name) log.Printf("\tRepository %s already present\n", hr.Name)
return true, nil return true, nil
} }
line++ line++
@ -93,6 +93,7 @@ func (hr *APKRepository) Manage() error {
if err := hr.Add(); err != nil { if err := hr.Add(); err != nil {
return err return err
} }
log.Println("\tUpdating apk repositories")
return hr.Update() return hr.Update()
} else { } else {
return hr.Delete() return hr.Delete()