FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > ArchLinux > ArchLinux User Repository

 
 
LinkBack Thread Tools
 
Old 09-23-2011, 08:54 AM
SanskritFritz
 
Default Head over Heels (hoh 1.01-5) download problems

I took over the maintenance of hoh.
The problem is that makepkg uses wget to download the sources, but wget gets
disabled upstream via .htaccess. I contacted the author, he said, he has no
sufficient permissions to change this on the webserver where the files are
hosted.
The previous AUR maintainer of hoh solved this issue simply by hosting the
file on his site (which is allowed, settled through email with the author).
Spoofing the user-agent in with 'wget --user-agent' or using curl works ok.
My question is, what is the recommended way now. Should I host the file
somewhere, or should I modify the PKGBUILD so that it downloads and unpacks
the source manually, or is there another way I overlooked?
 
Old 09-23-2011, 09:02 AM
Sebastian Wiesner
 
Default Head over Heels (hoh 1.01-5) download problems

2011/9/23 SanskritFritz <sanskritfritz@gmail.com>:
> I took over the maintenance of hoh.
> The problem is that makepkg uses wget to download the sources, but wget gets
> disabled upstream via .htaccess. I contacted the author, he said, he has no
> sufficient permissions to change this on the webserver where the files are
> hosted.

Did you try to contact the admin of the hosting site?
 
Old 09-23-2011, 09:07 AM
Gaetan Bisson
 
Default Head over Heels (hoh 1.01-5) download problems

[2011-09-23 10:54:23 +0200] SanskritFritz:
> The problem is that makepkg uses wget to download the sources

Just a note: curl will be the default in the next release.

> The previous AUR maintainer of hoh solved this issue simply by hosting the
> file on his site (which is allowed, settled through email with the author).
> Spoofing the user-agent in with 'wget --user-agent' or using curl works ok.
> My question is, what is the recommended way now. Should I host the file
> somewhere, or should I modify the PKGBUILD so that it downloads and unpacks
> the source manually, or is there another way I overlooked?

The cleanest way should be to just add

DLAGENTS=('http::/usr/bin/curl -fLC - --retry 3 --retry-delay 3 -o %o %u')

next to the source=() array in the PKGBUILD, with a comment explaining
the situation.

--
Gaetan
 
Old 09-23-2011, 11:37 AM
SanskritFritz
 
Default Head over Heels (hoh 1.01-5) download problems

On Fri, Sep 23, 2011 at 11:02 AM, Sebastian Wiesner <
lunaryorn@googlemail.com> wrote:

>
> Did you try to contact the admin of the hosting site?
>

Hmm, good idea actually, no, I haven't. Thanks for the heads up.


On Fri, Sep 23, 2011 at 11:07 AM, Gaetan Bisson <bisson@archlinux.org>wrote:

> [2011-09-23 10:54:23 +0200] SanskritFritz:
> > The problem is that makepkg uses wget to download the sources
>
> Just a note: curl will be the default in the next release.
>

That is good news I guess, although I prefer wget's output with the progress
bar much more.
I wonder, how many PKGBUILDs will break because of this

> My question is, what is the recommended way now. Should I host the file
> somewhere, or should I modify the PKGBUILD so that it downloads and
unpacks
> the source manually, or is there another way I overlooked?

The cleanest way should be to just add
>
> DLAGENTS=('http::/usr/bin/curl -fLC - --retry 3 --retry-delay 3 -o
> %o %u')
>
> next to the source=() array in the PKGBUILD, with a comment explaining
> the situation.
>

Thanks, that was the perfect solution <3. So, when new the makepkg will be
released, I can drop that line.
Thank you for your help.

Best regards
 

Thread Tools




All times are GMT. The time now is 10:56 AM.

VBulletin, Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2007 - 2008, www.linux-archive.org