You are not logged in.

#1 2003-01-26 14:26:11

deepfreeze
Member
From: NJ
Registered: 2002-12-27
Posts: 86

scripting problem?

I am trying to make a package where the path to the .tar.gz file includes a tilde (~). However, when I put this in the 'source=(pathname)' in the PKGBUILD and then try to run makepkg, the tilde is somehow replaced by '%7E' in the script and it is unable to download/compile/install.  I am a scripting newbie, so I'm sure there's a solution to this, I just don't know what it is.

Any help would be appreciated! Thanks smile


My hovercraft is full of eels.

Offline

#2 2003-01-26 19:22:11

orelien
Forum Fellow
From: France
Registered: 2002-12-05
Posts: 220
Website

Re: scripting problem?

I made a try, but it seems to work even if a ~ is in the source.
With:

source=(http://www2.lm-sensors.nu/~lm78/archive/$pkgname-$pkgver.tar.gz)
==> Downloading lm_sensors-2.7.0.tar.gz
--21:18:11--  http://www2.lm-sensors.nu/%7Elm78/archive/lm_sensors-2.7.0.tar.gz
           => `lm_sensors-2.7.0.tar.gz'
Resolving www2.lm-sensors.nu... done.
Connecting to www2.lm-sensors.nu[206.228.191.3]:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 595,379 [application/x-tar]

100%[========================================================>] 595,379       54.14K/s    ETA 00:00

21:18:32 (54.14 KB/s) - `lm_sensors-2.7.0.tar.gz' saved [595379/595379]

There is a %7E in the URL but nevertheless it worked.

Perhaps this comes from the ftpagent used by makepkg to download the file?
(makepkg is using (in the following order) wget or snarf or lftpget)
For me, it worked with wget.

Offline

#3 2003-01-27 08:07:40

ody
Member
From: Manchester, UK
Registered: 2002-08-12
Posts: 216
Website

Re: scripting problem?

its just being url encoded thats all.

Offline

Board footer

Powered by FluxBB