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
for scanner.Scan() {
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
}
line++
@ -93,6 +93,7 @@ func (hr *APKRepository) Manage() error {
if err := hr.Add(); err != nil {
return err
}
log.Println("\tUpdating apk repositories")
return hr.Update()
} else {
return hr.Delete()