diff --git a/main.go b/main.go index 0fb0b65..2f4dab0 100644 --- a/main.go +++ b/main.go @@ -15,7 +15,7 @@ import ( const cmdName = "fdroidcl" -const version = "v0.8.0" +const version = "v0.8.1" func subdir(dir, name string) string { p := filepath.Join(dir, name) diff --git a/repo.go b/repo.go index 159cc38..4510f6e 100644 --- a/repo.go +++ b/repo.go @@ -1,10 +1,12 @@ -// Copyright (c) 2015, Daniel Martí +// Copyright (c) 2015, Daniel Martí +// Copyright (c) 2025, Thomas Dickson // See LICENSE for licensing information package main import ( "fmt" + "strings" ) var cmdRepo = &Command{ @@ -90,6 +92,7 @@ func addRepo(name, url string) error { if repoIndex(name) != -1 { return fmt.Errorf("a repo with the same name \"%s\" exists already", name) } + url = strings.Split(url, "?")[0] config.Repos = append(config.Repos, repo{ID: name, URL: url, Enabled: true}) return writeConfig(&config) }