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

Sun Dec 6 21:03:39 UTC 2020
Leon Fauster <leonfauster at googlemail.com>

Am 06.12.20 um 16:18 schrieb Fabian Arrotin:
> 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


Thanks for the fast fix at Sunday :-)

--
Leon