Re: How to remotely download a package from koji?

2011-07-12 Thread Ville Skyttä
On 07/12/2011 04:31 PM, Tim Bielawa wrote:

$ wget
> http://koji.fedoraproject.org/koji/getfile?taskID=3192896\&name=BackupPC-3.2.1-1.fc14.src.rpm
[...]
> 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...

If you're referring to the resulting filename not being ideal, try wget
with the --content-disposition option, or curl with -OJ.
-- 
devel mailing list
devel@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/devel


Re: How to remotely download a package from koji?

2011-07-12 Thread Adam Jackson
On Tue, 2011-07-12 at 16:52 +0100, Richard W.M. Jones wrote:
> On Tue, Jul 12, 2011 at 09:31:33AM -0400, Tim Bielawa wrote:
> > I found this script once before to simplify downloading the results of
> > scratch builds:
> 
> Can't the "koji download-build" subcommand do this?

Yes, for normal builds, but not for scratch builds.

- ajax


signature.asc
Description: This is a digitally signed message part
-- 
devel mailing list
devel@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/devel

Re: How to remotely download a package from koji?

2011-07-12 Thread Richard W.M. Jones
On Tue, Jul 12, 2011 at 09:31:33AM -0400, Tim Bielawa wrote:
> I found this script once before to simplify downloading the results of
> scratch builds:

Can't the "koji download-build" subcommand do this?

Rich.

-- 
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
libguestfs lets you edit virtual machines.  Supports shell scripting,
bindings from many languages.  http://libguestfs.org
-- 
devel mailing list
devel@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/devel


Re: How to remotely download a package from koji?

2011-07-12 Thread Nicola Soranzo
Alle martedì 12 luglio 2011, Richard Shaw ha scritto:
> On Tue, Jul 12, 2011 at 8:34 AM, Jan Kratochvil
> 
>  wrote:
> > On Tue, 12 Jul 2011 15:22:53 +0200, Richard Shaw 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
> > 
> > Scratch download links should be direct
> > https://fedorahosted.org/koji/ticket/80
> 
> That would be nice... since even with the quotes I had to rename the
> file after downloading (or use -o to do it on the front end).

What about the -J option? WFM

curl -O -J 
'http://koji.fedoraproject.org/koji/getfile?taskID=3192896&name=BackupPC-3.2.1-1.fc14.src.rpm'

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


Re: How to remotely download a package from koji?

2011-07-12 Thread Richard Shaw
On Tue, Jul 12, 2011 at 8:34 AM, Jan Kratochvil
 wrote:
> On Tue, 12 Jul 2011 15:22:53 +0200, Richard Shaw 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
>
> Scratch download links should be direct
> https://fedorahosted.org/koji/ticket/80

That would be nice... since even with the quotes I had to rename the
file after downloading (or use -o to do it on the front end).
-- 
devel mailing list
devel@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/devel


Re: How to remotely download a package from koji?

2011-07-12 Thread Jan Kratochvil
On Tue, 12 Jul 2011 15:22:53 +0200, Richard Shaw 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

Scratch download links should be direct
https://fedorahosted.org/koji/ticket/80


Regards,
Jan
-- 
devel mailing list
devel@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/devel


Re: How to remotely download a package from koji?

2011-07-12 Thread Tim Bielawa
On Tue, 12 Jul 2011 08:22:53 -0500, Richard Shaw  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@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:

@(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


pgp7itTHAPNsj.pgp
Description: PGP signature
-- 
devel mailing list
devel@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/devel

Re: How to remotely download a package from koji?

2011-07-12 Thread Dan Horák
Richard Shaw píše v Út 12. 07. 2011 v 08:22 -0500: 
> 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.

look at http://koji.fedoraproject.org/scratch/


Dan


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

Re: How to remotely download a package from koji?

2011-07-12 Thread Richard Shaw
Never mind!

I didn't catch the & was getting interpreted by the shell, quoting the
url fixed it.

Thanks,
Richard
-- 
devel mailing list
devel@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/devel


Re: How to remotely download a package from koji?

2011-07-12 Thread Aditya Patawari
just put up ' in the url
curl -L -O 
'http://koji.fedoraproject.org/koji/getfile?taskID=3192896&name=BackupPC-3.2.1-1.fc14.src.rpm'

The '&' symbol causes problems :)

--
Aditya Patawari
http://blog.adityapatawari.com/
https://fedoraproject.org/wiki/User:Adimania
India
-- 
devel mailing list
devel@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/devel


Re: How to remotely download a package from koji?

2011-07-12 Thread Andy Grimm
The shell is interpreting the ampersand.  Try:

curl -L -O '
http://koji.fedoraproject.org/koji/getfile?taskID=3192896&name=BackupPC-3.2.1-1.fc14.src.rpm
'

--Andy

On Tue, Jul 12, 2011 at 9:22 AM, Richard Shaw  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@lists.fedoraproject.org
> https://admin.fedoraproject.org/mailman/listinfo/devel
>
-- 
devel mailing list
devel@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/devel