AUR web interface

Tasklist

FS#5556 - Sources List Garbled

Attached to Project: AUR web interface
Opened by Loui Chang (louipc) - Monday, 09 October 2006, 23:29 GMT
Last edited by Callan Barrett (wizzomafizzo) - Thursday, 05 June 2008, 08:58 GMT
Task Type Bug Report
Category Backend
Status Closed
Assigned To No-one
Architecture All
Severity Low
Priority Normal
Reported Version 1.2.9
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 1
Private No

Details

$pkgname=tomatoes
$pkgver=1.55
$pkgdata=1.5

source=(http://dl.sourceforge.net/sourceforge/$pkgname/$pkgname-linux-src-$pkgver.tar.bz2\
http://dl.sourceforge.net/sourceforge/$pkgname/$pkgname-linux-$pkgdata.tar.bz2\
tomatoes-1.55-c_str.patch makefile.diff README.patch)

If I had this in my PKGBUILD

I would end up with something like:

Sources
http://dl.sourceforge.net/sourceforge/tomatoes/tomatoes-linux-$pkgdata.tar.bz2http://dl.sourceforge.net/sourceforge/tomatoes/tomatoes-linux-src-1.55.tar.bz2tomatoes-1.55-c_str.patch
makefile.diff
README.patch

If I put a space before the end-of-line slashes in the "source=" list then the sources will be printed properly.
This task depends upon

Closed by  Callan Barrett (wizzomafizzo)
Thursday, 05 June 2008, 08:58 GMT
Reason for closing:  Not a bug
Additional comments about closing:  This seems like correct behavior.
Comment by Douglas Soares de Andrade (dsa) - Thursday, 26 October 2006, 22:46 GMT
Hi Loui,

Im my humble opnion, this is the correct behaviour because '\' in the end of the line says that the line will continue. Following this logic, if i write:

anystring\
anything

It will join things in the same line, as you noted.

So, can i close this or you have any others issue with this ?

Comment by Loui Chang (louipc) - Friday, 27 October 2006, 00:51 GMT
Yeah that does make sense, but I guess my post didn't translate too well in this bug submitting forum. I made a test package to demonstrate what I mean, because I have spaces after the newline.
Look for pkg test-louipc in the AUR or visit the following link.

http://aur.archlinux.org/packages.php?do_Details=1&ID=7287&O=0&L=0&C=0&K=test-louipc&SB=&SO=&PP=25&do_MyPackages=0&do_Orphans=0&SeB=nd

Thanks.
Comment by Douglas Soares de Andrade (dsa) - Friday, 27 October 2006, 01:00 GMT
Hi Loui,

This is what im telling you:

source=(test1\
test2\
test3)

In the first line, you have test1\ and then a second line.

They will turn into:

test1test2test3.

The correct use is:

source=(test1 \
test2 \
test3)

That will turn into:

test1 test2 test3

Got it ?

Comment by Loui Chang (louipc) - Friday, 27 October 2006, 01:14 GMT
Ah alright. Maybe there's a bug in makepkg because it doesn't have that same behaviour. It seems that makepkg recognizes the spaces after the newline and properly separates the file names. I tend to think that makepkg would be the proper behaviour. If '\' means that the next line is a continuation of the current line it should include everything including the whitespace shouldn't it?
Comment by Douglas Soares de Andrade (dsa) - Friday, 27 October 2006, 01:29 GMT
I think this is not a bug, but i will see what can i do in the source. About the makepkg, it has any connection to the aur sourcecode, that explains the different behaviour.

I guess it can be easily incorporated to aur and i will give it a try asap.

Thanks for filling this in our bugs system :)
Comment by Douglas Soares de Andrade (dsa) - Friday, 27 October 2006, 01:29 GMT
it has not any
Comment by Loui Chang (louipc) - Friday, 27 October 2006, 01:34 GMT
Alright cool. I'm glad to help if I can!
Comment by Loui Chang (louipc) - Monday, 26 February 2007, 05:12 GMT
I'm enclosing the PKGBUILD tarball for testing this bug. I feel awkward letting it linger in AUR.

Loading...