How to remotely download a package from koji?

Tim Bielawa tbielawa at redhat.com
Tue Jul 12 13:31:33 UTC 2011


On Tue, 12 Jul 2011 08:22:53 -0500, Richard Shaw <hobbes1069 at gmail.com> 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 at lists.fedoraproject.org
> 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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 162 bytes
Desc: not available
Url : http://lists.fedoraproject.org/pipermail/devel/attachments/20110712/5f255940/attachment.bin 


More information about the devel mailing list