diff options
author | Luke T. Shumaker <lukeshu@lukeshu.com> | 2024-05-18 22:06:29 -0600 |
---|---|---|
committer | Luke T. Shumaker <lukeshu@lukeshu.com> | 2024-05-18 22:06:29 -0600 |
commit | 7949a715a23d1f482d8e3fe43175d7dcbd915a2c (patch) | |
tree | 3368deddd32e4be3dabc1b8b945a6e9cd9f09b49 /cmd | |
parent | c2e8f35cb7ca5cd6f82fd7fc86b9f91d26dd7ddf (diff) |
imworkingon: Add the Arch systemd packaging PR
Diffstat (limited to 'cmd')
-rw-r--r-- | cmd/generate/main.go | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/cmd/generate/main.go b/cmd/generate/main.go index 6686605..925f832 100644 --- a/cmd/generate/main.go +++ b/cmd/generate/main.go @@ -137,6 +137,12 @@ func mainWithError() error { if m := reGitLabMR.FindStringSubmatch(c.URLs[0]); m != nil { authority := m[1] projectID := m[2] + if authority == "gitlab.archlinux.org" && strings.HasPrefix(projectID, "archlinux/packaging/packages/") { + return Upstream{ + URLs: []string{"https://" + authority + "/" + projectID}, + Name: strings.Replace(projectID, "/packages/", "/", 1), + } + } return Upstream{ URLs: []string{"https://" + authority + "/" + projectID}, Name: projectID, |