Skip to content

Commit 75472fb

Browse files
mattst88arthurzam
authored andcommitted
network: add gnome-gitlab remote-id
Signed-off-by: Matt Turner <mattst88@gentoo.org> Closes: #445 Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
1 parent d0d3d20 commit 75472fb

5 files changed

Lines changed: 23 additions & 0 deletions

File tree

src/pkgcheck/checks/network.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -275,6 +275,7 @@ def __init__(self, *args, **kwargs):
275275
'gentoo': 'https://gitweb.gentoo.org/{project}.git/',
276276
'github': 'https://github.com/{project}',
277277
'gitlab': 'https://gitlab.com/{project}',
278+
'gnome-gitlab': 'https://gitlab.gnome.org/{project}.git/',
278279
'hackage': 'https://hackage.haskell.org/package/{project}',
279280
'launchpad': 'https://launchpad.net/{project}',
280281
'osdn': 'https://osdn.net/projects/{project}/',
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{"__class__": "DeadUrl", "category": "MetadataUrlCheck", "package": "DeadUrl-gnome-gitlab", "version": "0", "attr": "metadata.xml: remote-id", "url": "https://gitlab.gnome.org/pkgcore/pkgcheck.git/", "message": "404 Client Error: Not Found for url: https://gitlab.gnome.org/pkgcore/pkgcheck.git/"}
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
DESCRIPTION="Ebuild with a dead metadata.xml URL"
2+
HOMEPAGE="https://gitlab.gnome.org/pkgcore/pkgcheck.git/"
3+
LICENSE="BSD"
4+
SLOT="0"
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
<?xml version='1.0' encoding='UTF-8'?>
2+
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
3+
<pkgmetadata>
4+
<upstream>
5+
<remote-id type="gnome-gitlab">pkgcore/pkgcheck</remote-id>
6+
</upstream>
7+
</pkgmetadata>
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
import io
2+
3+
from requests.models import Response
4+
5+
r = Response()
6+
r.status_code = 404
7+
r.reason = 'Not Found'
8+
r.url = 'https://gitlab.gnome.org/pkgcore/pkgcheck.git/'
9+
r.raw = io.StringIO()
10+
responses = [r]

0 commit comments

Comments
 (0)