You are not logged in.

#1 2013-05-06 08:44:45

J.
Member
Registered: 2011-01-31
Posts: 57

[SOLVED] '#' in url

This PKGBUILD has a '#' character in its URL field.  By quoting the value or \-escaping the character, I can get the local package field to include the correct URL, but if I submit this to AUR, either the URL displayed on the package page is truncated, or it breaks the parser and the following line (license) isn't recognised.  Here's the PKGBUILD:

# Maintainer: Joseph Lansdowne <J49137@gmail.com>
pkgname=ytsubs
pkgver=0.2.3
pkgrel=1
pkgdesc="Make an RSS feed from YouTube subscriptions"
arch=(any)
url='http://ikn.org.uk/Scripts#ytsubs'
license=(GPL3)
depends=(python2-gdata)
source=(http://ikn.org.uk/files/scripts/$pkgname)
md5sums=('aa1a4b8810a4630c0efb59863883a4d9')

package () {
    mkdir -p "$pkgdir/usr/bin/"
    install -m755 "$srcdir/$pkgname" "$pkgdir/usr/bin/"
}

%-encoding the character won't work - any ideas?

Last edited by J. (2013-05-07 22:41:39)

Offline

#2 2013-05-06 09:17:32

Pierre
Developer
From: Bonn
Registered: 2004-07-05
Posts: 1,964
Website

Re: [SOLVED] '#' in url

Sounds like an AUR bug to me.

Offline

#3 2013-05-06 09:48:04

Awebb
Member
Registered: 2010-05-06
Posts: 6,282

Re: [SOLVED] '#' in url

He, who uses # in URL in the first place, should be banned from the internet.

Offline

#4 2013-05-06 09:57:58

J.
Member
Registered: 2011-01-31
Posts: 57

Re: [SOLVED] '#' in url

I shouldn't use # for an anchor?

Offline

#5 2013-05-06 10:02:26

Pierre
Developer
From: Bonn
Registered: 2004-07-05
Posts: 1,964
Website

Re: [SOLVED] '#' in url

Don't worry, the URL is perfectly valid.

Offline

#6 2013-05-06 18:03:49

tdy
Member
From: Sacremende
Registered: 2008-12-14
Posts: 440

Re: [SOLVED] '#' in url

Maybe you can try URL encoding.. not sure if it'll work:

url="http://ikn.org.uk/Scripts%23ytsubs"

Edit: Nevermind, missed the last line of your post

My guess is that the AUR just parses everything between a hash and a newline as a comment.

Last edited by tdy (2013-05-06 18:11:41)

Offline

#7 2013-05-06 21:28:12

Xyne
Administrator/PM
Registered: 2008-08-03
Posts: 6,963
Website

Re: [SOLVED] '#' in url

Have you tried using an .AURINFO file?


My Arch Linux StuffForum EtiquetteCommunity Ethos - Arch is not for everyone

Offline

#8 2013-05-07 09:00:52

J.
Member
Registered: 2011-01-31
Posts: 57

Re: [SOLVED] '#' in url

Hmm.  I put a file .AURINFO next to PKGBUILD containing

url = http://ikn.org.uk/Scripts#ytsubs

and then ran makepkg -S.  I unpacked the resulting archive and it doesn't contain the .AURINFO file anywhere.

Offline

#9 2013-05-07 09:11:08

Scimmia
Fellow
Registered: 2012-09-01
Posts: 11,540

Re: [SOLVED] '#' in url

why would you expect it to? Either put it in the source array or tar it yourself.

Offline

#10 2013-05-07 10:18:51

J.
Member
Registered: 2011-01-31
Posts: 57

Re: [SOLVED] '#' in url

Ah, of course.  That's worked perfectly; thanks.

Offline

Board footer

Powered by FluxBB