This should be cast as 2 separate items.

PiperOrigin-RevId: 828028528
This commit is contained in:
Matthew Oliver
2025-11-04 10:17:30 -08:00
committed by Copybara-Service
parent b9a5d298a2
commit ce1da7dacb

View File

@@ -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)