File tree Expand file tree Collapse file tree 3 files changed +22
-2
lines changed
data/repos/eapis-testing/MissingRemoteIdCheck/MissingRemoteId
repos/eapis-testing/MissingRemoteIdCheck/MissingRemoteId Expand file tree Collapse file tree 3 files changed +22
-2
lines changed Original file line number Diff line number Diff line change @@ -690,7 +690,17 @@ def feed(self, pkgset):
690690 chain .from_iterable (f .uri for f in fetchables if isinstance (f , fetchable ))
691691 )
692692 urls = {url for url in all_urls if not url .endswith ((".patch" , ".diff" ))}
693- urls = sorted (urls .union (pkg .homepage ), key = len )
693+ urls = urls .union (pkg .homepage )
694+
695+ if "git-r3" in pkg .inherited and hasattr (pkg , "environment" ):
696+ egit_repo_uri = re .compile (r"EGIT_REPO_URI=\"(.*)\"" )
697+ for env_line in pkg .environment .data .splitlines ():
698+ result = re .search (egit_repo_uri , env_line )
699+ if result :
700+ urls .add (result .group (1 ).removesuffix (".git" ))
701+ break
702+
703+ urls = sorted (urls , key = len )
694704
695705 for remote_type , regex in self .remotes_map :
696706 if remote_type in remotes :
Original file line number Diff line number Diff line change 11--- eapis-testing/MissingRemoteIdCheck/MissingRemoteId/metadata.xml
22+++ fixed/MissingRemoteIdCheck/MissingRemoteId/metadata.xml
3- @@ -3,6 +3,10 @@
3+ @@ -3,6 +3,11 @@
44 <pkgmetadata>
55 <upstream>
66 <remote-id type="bitbucket">pkgcore/pkgcheck</remote-id>
77+ <remote-id type="gitlab">pkgcore/pkgcheck/extra/MissingRemoteId</remote-id>
88+ <remote-id type="heptapod">pkgcore/pkgcheck</remote-id>
99+ <remote-id type="pypi">MissingRemoteId</remote-id>
1010+ <remote-id type="sourceforge">pkgcheck</remote-id>
11+ + <remote-id type="gitlab">pkgcore/pkgcheck</remote-id>
1112 </upstream>
1213 <use>
1314 <flag name="test">enable tests</flag>
Original file line number Diff line number Diff line change 1+ EAPI=7
2+
3+ inherit git-r3
4+
5+ DESCRIPTION=" Don't suggest where already value exists"
6+ HOMEPAGE=" https://pkgcore.github.io/pkgcheck/"
7+ EGIT_REPO_URI=" https://gitlab.com/pkgcore/pkgcheck.git"
8+ LICENSE=" BSD"
9+ SLOT=" 0"
You can’t perform that action at this time.
0 commit comments