From 69187b4017ad720819247d7e067dce22f0cfd472 Mon Sep 17 00:00:00 2001 From: classabbyamp Date: Sat, 15 Apr 2023 01:27:17 -0400 Subject: xlint: lint crates.io distfile urls this is painful: ``` distfiles="https://crates.io/api/v1/crates/pkgname/${version}/download>pkgname-${version}.tar.gz" ``` this is better, and xbps-src already supports extracting them: ``` distfiles="https://static.crates.io/crates/pkgname/pkgname-${version}.crate" ``` this replaces void-linux/void-packages#43417 as it adding new `_SITE` variables has been discouraged --- xlint | 1 + 1 file changed, 1 insertion(+) diff --git a/xlint b/xlint index 7ab4da7..5313f76 100755 --- a/xlint +++ b/xlint @@ -470,6 +470,7 @@ for argument; do scan 'distfiles=.*freedesktop\.org/software' 'use $FREEDESKTOP_SITE' scan 'distfiles=.*download.kde.org/stable' 'use $KDE_SITE' scan 'distfiles=.*xorg\.freedesktop\.org/wiki/' 'use $XORG_HOME' + scan 'distfiles=.*crates.io/api/' 'use https://static.crates.io/crates/pkgname/pkgname-${version}.crate' scan 'usr/lib/python3.[0-9]/site-packages' 'use $py3_sitelib' scan 'pycompile_module=' 'do not set pycompile_module, it is autodetected' scan '^\t*function\b' 'do not use the function keyword' -- cgit 1.4.1