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