FS#25210 - Source list breaks on the web interface when shell scripting uses replacements

Attached to Project: AUR web interface
Opened by Kyle Fuller (kylef) - Friday, 22 July 2011, 00:55 GMT
Last edited by Lukas Fleischer (lfleischer) - Wednesday, 05 February 2014, 10:54 GMT
Task Type General Gripe
Category Backend
Status Closed
Assigned To Lukas Fleischer (lfleischer)
Architecture All
Severity Low
Priority Normal
Reported Version 1.8.2
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 6
Private No

Details

You can find an example of this on https://aur.archlinux.org/packages.php?ID=16626

Note, the source shows "http://github.com/downloads/zfsonlinux/spl/spl-0.6.0_rc5//_/-}.tar.gz". The package shows "source=(http://github.com/downloads/zfsonlinux/spl/spl-${pkgver//_/-}.tar.gz)".

I have written a patch which can be found on my github repository for aur (git://github.com/kylef/aur.git), commit "1f6a4649a2d14f7b714568361a044a2c74dece23" on my "variables" branch. https://github.com/kylef/aur/commit/1f6a4649a2d14f7b714568361a044a2c74dece23

There is one flaw with this, is that $foo-bla will be a variable called "foo-bla", whereas before it would just be "foo". I couldn't find a easy solution to check this.
This task depends upon

Closed by  Lukas Fleischer (lfleischer)
Wednesday, 05 February 2014, 10:54 GMT
Reason for closing:  Won't fix
Additional comments about closing:  See  FS#15043 .
Comment by Lukas Fleischer (lfleischer) - Friday, 22 July 2011, 15:57 GMT
This is a known "bug" and related to  FS#15043 . There is no way to do this properly - your patch looks like one of the best workarounds/hacks I've seen so far, tho :p I'll leave this open for now.
Comment by Andy Kluger (evilgnome) - Saturday, 20 April 2013, 05:19 GMT
The example posted is no longer an example for this bug, so here is another: https://aur.archlinux.org/packages/python2-libarchive/

The listed source url is: https://python2-libarchive//2/}.googlecode.com/files/python2-libarchive//2/}-3.0.4_5//_/-}.tar.gz

Loading...