diff options
author | 2022-10-28 22:25:34 +0300 | |
---|---|---|
committer | 2022-10-29 18:10:59 +0300 | |
commit | c1f105c44cd43f073d892ea06c371b6e0a6fe28d (patch) | |
tree | 641f44bb793963cdd36e3e4e8cd3d1a1ccdd2fa6 /tests/scripts | |
parent | BetterCompressionCheck: fix false positive when fixed (diff) | |
download | pkgcheck-c1f105c44cd43f073d892ea06c371b6e0a6fe28d.tar.gz pkgcheck-c1f105c44cd43f073d892ea06c371b6e0a6fe28d.tar.bz2 pkgcheck-c1f105c44cd43f073d892ea06c371b6e0a6fe28d.zip |
MissingRemoteIdCheck: check for missing remote-id
Scans HOMEPAGE and SRC_URI for uris matching regexes using which it
extracts remote-id. Skips already defined remote-id types. Skips URIS
that end with ".diff" or ".patch". Prefers to take remote-id from newer
package versions, in case URL updated.
Resolves: https://github.com/pkgcore/pkgcheck/issues/475
Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
Diffstat (limited to 'tests/scripts')
-rw-r--r-- | tests/scripts/test_pkgcheck_scan.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/scripts/test_pkgcheck_scan.py b/tests/scripts/test_pkgcheck_scan.py index 8caed9f2..8b8113e7 100644 --- a/tests/scripts/test_pkgcheck_scan.py +++ b/tests/scripts/test_pkgcheck_scan.py @@ -406,9 +406,9 @@ class TestPkgcheckScan: # create stub profile to suppress ArchesWithoutProfiles result repo.create_profiles([Profile('stub', 'amd64')]) # create ebuild with unknown keywords - repo.create_ebuild('cat/pkg-0', keywords=['unknown']) + repo.create_ebuild('cat/pkg-0', keywords=['unknown'], homepage='https://example.com') # and a good ebuild for the latest version - repo.create_ebuild('cat/pkg-1', keywords=['amd64']) + repo.create_ebuild('cat/pkg-1', keywords=['amd64'], homepage='https://example.com') # results for old pkgs will be shown by default args = ['-r', repo.location] |