FS#28505 - AUR Source field contains unparsed bash string operation
Attached to Project:
Arch Linux
Opened by tjbp (STM) - Saturday, 18 February 2012, 15:09 GMT
Last edited by Dave Reisner (falconindy) - Saturday, 18 February 2012, 19:01 GMT
Opened by tjbp (STM) - Saturday, 18 February 2012, 15:09 GMT
Last edited by Dave Reisner (falconindy) - Saturday, 18 February 2012, 19:01 GMT
|
Details
Description:
Elements of a package's source array often contain a bash variable - specifically $pkgver (as encouraged on the wiki). The AUR's backend attempts to parse the earlier definition of this variable, in order to deliver a valid URL on the package's AUR page. This parsing fails if the earlier definition contains a bash string operation - necessary if the source URL has a different formatting for the package version. Steps to reproduce: # define version pkgver=1.01 # define custom version with "." removed for URL _pkgver=${pkgver/./} # define source source=('http://example.com/source${_pkgver}.tar.gz') Expected URL: http://example.com/source101.tar.gz Actual URL: http://example.com/source101/./}.tar.gz Example in the wild: https://aur.archlinux.org/packages.php?ID=32014 |
This task depends upon
Closed by Dave Reisner (falconindy)
Saturday, 18 February 2012, 19:01 GMT
Reason for closing: Duplicate
Additional comments about closing: FS#15043
Saturday, 18 February 2012, 19:01 GMT
Reason for closing: Duplicate
Additional comments about closing:
Comment by tjbp (STM) - Saturday, 18
February 2012, 15:12 GMT
Whoops, didn't realise there were separate projects. Can someone
move this to AUR -> Backend?