is it possible to download a spec file only using yum?

Sérgio Basto sergio at serjux.com
Sat Feb 23 04:25:03 UTC 2013


On Sex, 2013-02-22 at 00:36 +0100, poma wrote: 
> On 02/21/13 10:39, Matthew Miller wrote:
> > On Wed, Feb 20, 2013 at 07:16:08PM -0600, Ranjan Maitra wrote:
> >> I was wondering if it is possible to download a spec file using yum
> >> or rpm only (without downloading the rpm)?
> > 
> > No, but there's a better way! All of our spec files are available in git,
> > and the "fedpkg" command is a nice wrapper around access to the repository.
> > So:
> > 
> > $ sudo yum install fedpkg
> > [...]
> > $ fedpkg clone firefox
> > Cloning into 'firefox'...
> > remote: Counting objects: 3234, done.
> > remote: Compressing objects: 100% (1979/1979), done.
> > remote: Total 3234 (delta 1702), reused 2424 (delta 1210)
> > Receiving objects: 100% (3234/3234), 741.50 KiB | 313 KiB/s, done.
> > Resolving deltas: 100% (1702/1702), done.
> […]
> 
> fedpkg --user poma -v clone firefox
> Cloning ssh://poma@pkgs.fedoraproject.org/firefox
> Running git clone ssh://poma@pkgs.fedoraproject.org/firefox directly on
> the tty
> Cloning into 'firefox'...
> Permission denied (publickey).
> fatal: Could not read from remote repository.
> 
> Please make sure you have the correct access rights
> and the repository exists.
> Could not execute clone: Command '['git', 'clone',
> 'ssh://poma@pkgs.fedoraproject.org/firefox']' returned non-zero exit
> status 128
> --
> 
> In contrast:
> fedpkg -v clone -a firefox
> Cloning git://pkgs.fedoraproject.org/firefox
> Running git clone git://pkgs.fedoraproject.org/firefox directly on the tty
> Cloning into 'firefox'...
> remote: Counting objects: 3234, done.
> remote: Compressing objects: 100% (1979/1979), done.
> remote: Total 3234 (delta 1704), reused 2424 (delta 1210)
> Receiving objects: 100% (3234/3234), 708.87 KiB | 372 KiB/s, done.
> Resolving deltas: 100% (1704/1704), done.
> --
> 
> Shouldn't the default be an '-a'(anonymous) check out via git?

That's a point. 
I got message "Xould not read Fedora cert, falling back to default
method"  
default method should be anonymous. 
we need to open a bug report 

-- 
Sérgio M. B.



More information about the devel mailing list