From 248be132dff32a1d2ec45dce0c84f878fe8fdc51 Mon Sep 17 00:00:00 2001 From: Michal Vasilek Date: Tue, 8 Nov 2022 22:59:23 +0100 Subject: xnew: don't use $pkgname in $distfiles $pkgname is not constant, it can change when the package is renamed downstream while we would expect it to still build from the correct sources. It also often doesn't save any characters and not using the variable makes prettier, simpler URLs that can often be copied from the template without manually replacing variables to get to the page with sources. --- xnew | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'xnew') diff --git a/xnew b/xnew index de7a2e4..941cf01 100755 --- a/xnew +++ b/xnew @@ -31,7 +31,7 @@ case "$PKG" in done version=${version%.} PKG=${PKG%-*} - distfiles="$homepage\${pkgname}-\${version}.$ext" + distfiles="$homepage$pkgname-\${version}.$ext" esac if [ -z "$append" ]; then -- cgit 1.4.1