[CentOS-devel] broken: dnf download --source

Sun Dec 6 15:18:20 UTC 2020
Fabian Arrotin <arrfab at centos.org>

On 06/12/2020 15:18, Leon Fauster via CentOS-devel wrote:
> I just wonder about
> 
> # dnf download --source pkgname.rpm
> 
> Right now its downloading old srpms.
> 
> 
> # dnf download --source  mesa
> ...
> mesa-18.3.1-5.el8_0.src.rpm
> 
> but "installed" are packages based on
> 
> # rpm -qa --qf '%{SOURCERPM}\n'|grep mesa |head -1
> mesa-19.3.4-2.el8.src.rpm
> 
> Is this dnf feature broken?
> 
> -- 
> Thanks,
> Leon

Hi Leon,

Just have a look at /etc/yum.repos.d/CentOS-Sources.repo for AppStream :

baseurl=http://vault.centos.org/$contentdir/$releasever/AppStream/Source/

But clearly if you browse this repo, you can see that it is (was when
you'll read that mail probably) a symlink to
https://vault.centos.org/centos/8.0.1905/ , while it seems other sources
releases were pushed to different directory and pkg you're searching for
seems to be
https://vault.centos.org/8.2.2004/AppStream/Source/SPackages/mesa-19.3.4-2.el8.src.rpm

So now the issue seems to be that there was a missing /centos/8/ symlink
change to /8.2.2004/ at release time (and even for 8.1.1911 too btw).
Something to add for Johnny and Brian for new release (and even the
upcoming 8.3.2011 one, just *around* the corner) ;-)

PS : I  just quickly created missing symlinks for now but something to
be adapted at the "push script side" somewhere

-- 
Fabian Arrotin
The CentOS Project | https://www.centos.org
gpg key: 17F3B7A1 | twitter: @arrfab

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: OpenPGP digital signature
URL: <http://lists.centos.org/pipermail/centos-devel/attachments/20201206/0a9e012c/attachment-0006.sig>