Try 07
This commit is contained in:
parent
b7b3b0bb29
commit
b4f913c707
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue