summaryrefslogtreecommitdiff
path: root/cmd
diff options
context:
space:
mode:
authorLuke T. Shumaker <lukeshu@lukeshu.com>2024-05-18 22:06:29 -0600
committerLuke T. Shumaker <lukeshu@lukeshu.com>2024-05-18 22:06:29 -0600
commit7949a715a23d1f482d8e3fe43175d7dcbd915a2c (patch)
tree3368deddd32e4be3dabc1b8b945a6e9cd9f09b49 /cmd
parentc2e8f35cb7ca5cd6f82fd7fc86b9f91d26dd7ddf (diff)
imworkingon: Add the Arch systemd packaging PR
Diffstat (limited to 'cmd')
-rw-r--r--cmd/generate/main.go6
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,