diff options
author | Michal Vasilek <michal@vasilek.cz> | 2022-11-08 22:59:23 +0100 |
---|---|---|
committer | Leah Neukirchen <leah@vuxu.org> | 2022-11-11 13:53:59 +0100 |
commit | 248be132dff32a1d2ec45dce0c84f878fe8fdc51 (patch) | |
tree | 490229c2926d64996af05e7c301e6b70d451aaf0 /xnew | |
parent | 515cc6f16d9f6592e6067cb8b4a1edf330117172 (diff) | |
download | xtools-248be132dff32a1d2ec45dce0c84f878fe8fdc51.tar.gz xtools-248be132dff32a1d2ec45dce0c84f878fe8fdc51.tar.xz xtools-248be132dff32a1d2ec45dce0c84f878fe8fdc51.zip |
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.
Diffstat (limited to 'xnew')
-rwxr-xr-x | xnew | 2 |
1 files changed, 1 insertions, 1 deletions
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 |