summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOlav Vitters <olav@vitters.nl>2020-04-29 17:36:39 +0200
committerOlav Vitters <olav@vitters.nl>2020-04-29 17:36:39 +0200
commit970f10dfaab3a3f0d1759e016408ec3b1cc0ac5f (patch)
treede921ff030b398632571defefda7847e55089da3
parentabfa0a18c57f37a79dbbf3a07b9609d5b301baa2 (diff)
downloadmgagnome-970f10dfaab3a3f0d1759e016408ec3b1cc0ac5f.tar
mgagnome-970f10dfaab3a3f0d1759e016408ec3b1cc0ac5f.tar.gz
mgagnome-970f10dfaab3a3f0d1759e016408ec3b1cc0ac5f.tar.bz2
mgagnome-970f10dfaab3a3f0d1759e016408ec3b1cc0ac5f.tar.xz
mgagnome-970f10dfaab3a3f0d1759e016408ec3b1cc0ac5f.zip
clean-spec: change cpan.org to metacpan.org
-rwxr-xr-xmgagnome29
1 files changed, 26 insertions, 3 deletions
diff --git a/mgagnome b/mgagnome
index a4b5dfa..5e04866 100755
--- a/mgagnome
+++ b/mgagnome
@@ -488,8 +488,26 @@ class SpecFile():
(
'download.gnome.org instead of ftp.gnome.org',
r'\g<keeppre>https://download.gnome.org\g<keeppost>',
- re.compile(r'^(?P<keeppre>Source[0-9]*[ \t]*:[^\n]+)(?:ftp|http|https):' +
- r'//ftp.gnome.org/pub/GNOME(?P<keeppost>/[^\n]+\n)',
+ re.compile(r'^(?P<keeppre>Source[0-9]*[ \t]*:[^\n]+)'
+ r'(?:ftp|http|https)://ftp.gnome.org/pub/GNOME'
+ r'(?P<keeppost>/[^\n]+\n)',
+ re.MULTILINE + re.IGNORECASE)
+ ),
+ (
+ 'metacpan.org instead of www.cpan.org and search.cpan.org',
+ r'\g<keeppre>https://metacpan.org/release/\g<keepmore>\g<keeppost>',
+ re.compile(r'^(?P<keeppre>URL[ \t]*:[^\n]+)'
+ r'http://(?:search\.cpan\.org)/(?:dist|~[^/]+)/(?P<keepmore>[^/\n]+)/?[ \t]*'
+ r'(?P<keeppost>[^\n]*\n)',
+ re.MULTILINE + re.IGNORECASE)
+ ),
+ (
+ 'metacpan.org instead of www.cpan.org and search.cpan.org',
+ r'\g<keeppre>https://cpan.metacpan.org/\g<keepmore>\g<keeppost>',
+ re.compile(r'^(?P<keeppre>Source[0-9]*[ \t]*:[^\n]+)'
+ r'https?://(?:(?:www\.cpan\.org)(?:/CPAN)?|(?:(?i)search\.cpan\.org)/CPAN)/+'
+ r'(?P<keepmore>authors/id/|modules/by-module/|modules/by-authors/id/)'
+ r'(?P<keeppost>[^\n]+\n)',
re.MULTILINE + re.IGNORECASE)
),
(
@@ -1160,7 +1178,12 @@ class Upstream():
if self.limit is not None:
tarballs.intersection_update(self.limit)
- self.names = tarballs
+ self._names = tarballs
+
+ @property
+ def names(self):
+ """Return the upstream names"""
+ return self._names
@classmethod
@lru_cache(maxsize=4096)