mirror of
https://github.com/google/glazier.git
synced 2025-12-19 18:27:35 -05:00
This should be cast as 2 separate items.
PiperOrigin-RevId: 828028528
This commit is contained in:
committed by
Copybara-Service
parent
b9a5d298a2
commit
ce1da7dacb
@@ -20,6 +20,7 @@ import (
|
||||
"fmt"
|
||||
"os"
|
||||
"regexp"
|
||||
"strconv"
|
||||
"strings"
|
||||
"time"
|
||||
|
||||
@@ -78,7 +79,7 @@ func AddRepo(name, url string, priority int, conf *Config) error {
|
||||
|
||||
args := []string{"addrepo"}
|
||||
if priority != 0 {
|
||||
args = append(args, fmt.Sprintf("--priority %d", priority))
|
||||
args = append(args, "--priority", strconv.Itoa(priority))
|
||||
}
|
||||
args = append(args, name, url)
|
||||
return call(args, conf)
|
||||
|
||||
Reference in New Issue
Block a user