[issue348] Fails to download from channel w/ query args in the url.
Edward Rudd at Labix Tracker
tracker at labix.org
Thu Dec 20 08:49:50 PST 2007
New submission from Edward Rudd <erudd at netfor.com>:
Dell uses repository URLs that redirect to where the files really are depending
on your distribution by making use of excess query arguments.
Example (for 386 el4)
http://linux.dell.com/repo/software/mirrors.pl?osname=el4&basearch=i386&redirect=1&redir_path=
When called by Smart to fetch the rpm-md it works fine, (appending
/repodata/repomd.xml past the redirect-path=)
And when the packages are downloaded it appends the correct URL
(ex. /libsmbios/0.13.13-2.fc7/libsmbios-bin-0.13.13-2.el4.i386.rpm)
However, smart saves the package as "mirrors.pl" in the /var/lib/smart/packages
directory, thus when a second package is downloaded it is saved with the SAME
filename and the verification fails because it is a different file than expected.
Proposed change:
The *file saving* code needs to be altered to not use the assumed filename from
the URL, but rather use data from the metadata and piece together the filename
from %{name}-%{version}-%{release}.%{arch}.rpm which will be unique.
----------
messages: 1259
nosy: urkle
priority: bug
project: smart
status: unread
title: Fails to download from channel w/ query args in the url.
_______________________________________
Labix issue tracker <tracker at labix.org>
<http://tracker.labix.org/issue348>
_______________________________________
More information about the Smart
mailing list