Skip to content

Commit

Permalink
fixing URLs for ABS after upstream change from git.archlinux.org to g…
Browse files Browse the repository at this point in the history
…ithub
  • Loading branch information
Oliver Mangold authored and Jguer committed Jul 13, 2021
1 parent 61e38ad commit 4a93199
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions download.go
Original file line number Diff line number Diff line change
Expand Up @@ -252,9 +252,9 @@ func getPkgbuildsfromABS(pkgs []string, path string, dbExecutor db.Executor, for
// https://git.archlinux.org/svntogit/packages.git
switch pkg.DB().Name() {
case "core", "extra", "testing":
url = "https://git.archlinux.org/svntogit/packages.git"
url = "https://github.com/archlinux/svntogit-packages.git"
case "community", "multilib", "community-testing", "multilib-testing":
url = "https://git.archlinux.org/svntogit/community.git"
url = "https://github.com/archlinux/svntogit-community.git"
default:
missing = append(missing, name)
continue
Expand Down
4 changes: 2 additions & 2 deletions pkg/download/abs.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ var ErrABSPackageNotFound = errors.New(gotext.Get("package not found in repos"))
const MaxConcurrentFetch = 20
const urlPackagePath = "/plain/trunk/PKGBUILD?"

var ABSPackageURL = "https://git.archlinux.org/svntogit/packages.git"
var ABSCommunityURL = "https://git.archlinux.org/svntogit/community.git"
var ABSPackageURL = "https://github.com/archlinux/svntogit-packages.git"
var ABSCommunityURL = "https://github.com/archlinux/svntogit-community.git"

func getPackageURL(db, pkgName string) (string, error) {
values := url.Values{}
Expand Down
4 changes: 2 additions & 2 deletions pkg/download/abs_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ func Test_getPackageURL(t *testing.T) {
db: "community",
pkgName: "kitty",
},
want: "https://git.archlinux.org/svntogit/community.git/plain/trunk/PKGBUILD?h=packages%2Fkitty",
want: "https://github.com/archlinux/svntogit-community.git/plain/trunk/PKGBUILD?h=packages%2Fkitty",
wantErr: false,
},
{
Expand All @@ -55,7 +55,7 @@ func Test_getPackageURL(t *testing.T) {
db: "core",
pkgName: "linux",
},
want: "https://git.archlinux.org/svntogit/packages.git/plain/trunk/PKGBUILD?h=packages%2Flinux",
want: "https://github.com/archlinux/svntogit-packages.git/plain/trunk/PKGBUILD?h=packages%2Flinux",
wantErr: false,
},
{
Expand Down

0 comments on commit 4a93199

Please sign in to comment.