lol
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

wine: fix updateScript

It looks like there was a recent change that breaks routing to
download directories without a trailing slash.

For example:

> curl -s https://dl.winehq.org/wine/source/10.x
<Error><Code>NoSuchKey</Code><Message>The specified key does not exist.</Message><Key>wine/source/10.x</Key><RequestId>AKNHP1J5C1T3RPE7</RequestId><HostId>aRh+/1HwSjshv35lm1saNkVC46nJtYFQmc6a2KxO5ZoKAuOVy4qgf6BE5aNz/UCZ/wa8UxIGlKmnRFFF6NSOQpXRoMttaaHhhsiczYeNfRc=</HostId></Error>

> curl -s https://dl.winehq.org/wine/source/10.x/
<!doctype html>
<html lang="en">
<head>
<title>WineHQ Downloads: /wine/source/10.x/</title>
<meta charset="utf-8">
...

+1 -1
+1 -1
pkgs/applications/emulators/wine/update-lib.sh
··· 20 20 } 21 21 22 22 get_latest_wine_version() { 23 - list-directory-versions --pname=wine --url="$wine_url_base/source/$1" | grep -v 'diff\|rc\|tar' | sort --reverse --version-sort -u | head -n 1 23 + list-directory-versions --pname=wine --url="$wine_url_base/source/$1/" | grep -v 'diff\|rc\|tar' | sort --reverse --version-sort -u | head -n 1 24 24 } 25 25 26 26 get_latest_lib_version() {