Skip to content

Commit 2f417fd

Browse files
thesamesamarthurzam
authored andcommitted
network: Add savannah and savannah-nongnu remote-ids
Signed-off-by: Sam James <sam@gentoo.org> Closes: #446 Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
1 parent cf6ccc8 commit 2f417fd

9 files changed

Lines changed: 46 additions & 0 deletions

File tree

src/pkgcheck/checks/network.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -280,6 +280,8 @@ def __init__(self, *args, **kwargs):
280280
'pecl': 'https://pecl.php.net/package/{project}',
281281
'pypi': 'https://pypi.org/project/{project}/',
282282
'rubygems': 'https://rubygems.org/gems/{project}',
283+
'savannah': 'https://savannah.gnu.org/projects/{project}',
284+
'savannah-nongnu': 'https://savannah.nongnu.org/projects/{project}',
283285
'sourceforge': 'https://sourceforge.net/projects/{project}/',
284286
'sourcehut': 'https://sr.ht/{project}/',
285287
'vim': 'https://vim.org/scripts/script.php?script_id={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-savannah-nongnu", "version": "0", "attr": "metadata.xml: remote-id", "url": "https://savannah.nongnu.org/projects/pkgcheck", "message": "404 Client Error: Not Found for url: https://savannah.nongnu.org/projects/pkgcheck"}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{"__class__": "DeadUrl", "category": "MetadataUrlCheck", "package": "DeadUrl-savannah", "version": "0", "attr": "metadata.xml: remote-id", "url": "https://savannah.gnu.org/projects/pkgcheck", "message": "404 Client Error: Not Found for url: https://savannah.gnu.org/projects/pkgcheck"}
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://savannah.nongnu.org/projects/pkgcheck"
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="savannah-nongnu">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://savannah.nongnu.org/projects/pkgcheck'
9+
r.raw = io.StringIO()
10+
responses = [r]
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://savannah.gnu.org/projects/pkgcheck"
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="savannah">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://savannah.gnu.org/projects/pkgcheck'
9+
r.raw = io.StringIO()
10+
responses = [r]

0 commit comments

Comments
 (0)