Re: How to remotely download a package from koji?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, 12 Jul 2011 08:22:53 -0500, Richard Shaw <hobbes1069@xxxxxxxxx> wrote:
> I'm trying to remotely download a package from a koji scratch build
> but it doesn't work.
> 
> # curl -L -O http://koji.fedoraproject.org/koji/getfile?taskID=3192896&name=BackupPC-3.2.1-1.fc14.src.rpm
> 
> Usually the -L handles the redirects gracefully but in this case the
> rpm package is not getting downloaded.
> 
> Clicking on the link on my local computer of course works...
> 
> Thanks,
> Richard
> -- 
> devel mailing list
> devel@xxxxxxxxxxxxxxxxxxxxxxx
> https://admin.fedoraproject.org/mailman/listinfo/devel

I found this script once before to simplify downloading the results of
scratch builds:

http://people.redhat.com/mikeb/scripts/download-scratch.py


Also, if you escape the ampersand and rename the result you can wget
that easily:

<tbielawa>@(deepfryer)[~] 9:30:43
$ wget
http://koji.fedoraproject.org/koji/getfile?taskID=3192896\&name=BackupPC-3.2.1-1.fc14.src.rpm
--2011-07-12 09:30:44--
http://koji.fedoraproject.org/koji/getfile?taskID=3192896&name=BackupPC-3.2.1-1.fc14.src.rpm
Resolving koji.fedoraproject.org... 209.132.181.7
Connecting to koji.fedoraproject.org|209.132.181.7|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 525870 (514K) [application/x-rpm]
Saving to: “getfile?taskID=3192896&name=BackupPC-3.2.1-1.fc14.src.rpm”

100%[======================================>] 525,870      819K/s   in
0.6s

2011-07-12 09:30:45 (819 KB/s) -
“getfile?taskID=3192896&name=BackupPC-3.2.1-1.fc14.src.rpm” saved
[525870/525870]

Not ideal though...

-- 
Tim Bielawa
Associate Software Engineer
Production Control Team
919.754.4741 Cube / 919.332.6411 Cell
Raleigh, NC
1BA0 4FAB 4C13 FBA0 A036  4958 AD05 E75E 0333 AE37

Attachment: pgpXLunqGDEVb.pgp
Description: PGP signature

-- 
devel mailing list
devel@xxxxxxxxxxxxxxxxxxxxxxx
https://admin.fedoraproject.org/mailman/listinfo/devel

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]
  Powered by Linux