You are not logged in.

#1 2010-12-26 04:44:27

kilior
Member
Registered: 2010-08-06
Posts: 13

Is it my mistake, or a bug?

here is my PKGBUILD: https://aur.archlinux.org/packages/pyth … y/PKGBUILD
and you see the source line is very ugly.
you can replace it with :
http://www.renpy.org/dl/${pkgver}/renpy … ce.tar.bz2

when you makepkg, you wil see this information :

Downloading renpy-${pkgver}-source.tar.bz2...
--2010-12-26 12:37:27--  http://www.renpy.org/dl/6.11.2/renpy-6. … ce.tar.bz2
Resolving www.renpy.org... 72.26.228.83
Connecting to www.renpy.org|72.26.228.83|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 8737479 (8.3M) [application/x-bzip2]
Saving to: `renpy-6.11.2-source.tar.bz2.part'

100%[======================================>] 8,737,479    119K/s   in 1m 59s 

2010-12-26 12:39:28 (71.6 KB/s) - `renpy-6.11.2-source.tar.bz2.part' saved [8737479/8737479]

mv: cannot stat `/tmp/yaourt-tmp-zhangn1985/aur-python-renpy/renpy-${pkgver}-source.tar.bz2.part': No such file or directory
==> ERROR: Failure while downloading renpy-${pkgver}-source.tar.bz2
    Aborting...
==> ERROR: Makepkg was unable to build python-renpy.

is my mistake or a bug that makepkg forget to replace pkgver to it value?

Last edited by kilior (2010-12-26 04:45:00)

Offline

#2 2010-12-26 05:52:24

Ranguvar
Member
Registered: 2008-08-12
Posts: 2,549

Re: Is it my mistake, or a bug?

You're using single quotes, which would force bash to not expand the variables.
Use double quotes or no quotes, that should fix the problem.

Offline

#3 2010-12-26 06:03:27

kilior
Member
Registered: 2010-08-06
Posts: 13

Re: Is it my mistake, or a bug?

thank you.
it is fixed.

Offline

#4 2010-12-26 06:25:51

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

Re: Is it my mistake, or a bug?

Ranguvar wrote:

Use double quotes or no quotes.

Get into the habit of always using double quotation marks. It will prevent unexpected word splitting when Bash expands variables that contain spaces.

~> foo="bar baz"
~> mkdir ${foo}
~> ls -1
bar
baz
~> cd ${foo}
~/bar>

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

Offline

Board footer

Powered by FluxBB