Bug 344781 - yum fails on yum.conf with ftp baseurl
Summary: yum fails on yum.conf with ftp baseurl
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: yum
Version: 7
Hardware: All
OS: Linux
low
medium
Target Milestone: ---
Assignee: Jeremy Katz
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2007-10-22 01:25 UTC by morgan read
Modified: 2014-01-21 22:59 UTC (History)
4 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2007-10-22 03:04:46 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
offending file (1.20 KB, text/plain)
2007-10-22 01:25 UTC, morgan read
no flags Details

Description morgan read 2007-10-22 01:25:21 UTC
Description of problem:
Yum refuses to parse ftp url as base url in yum.conf
(Tell me I can't type!)

Version-Release number of selected component (if applicable):
[root@localhost ~]# rpm -q yum
yum-3.2.5-1.fc7


How reproducible:
Always

Steps to Reproduce:
1. Insert ftp url and enable baseurl in yum.conf
2.
3.
  
Actual results:
[root@localhost ~]# yum remove openoffice*
Options Error: Error parsing
'ftp.wicks.co.nz/pub/linux/dist/fedora/updates/7/i386/': URL must be http, ftp,
file or https not ""
[root@localhost ~]#

Expected results:
yum works

Additional info:
offending file yum.repos.d/fedora.repo attached

Comment 1 morgan read 2007-10-22 01:25:21 UTC
Created attachment 233691 [details]
offending file

Comment 2 Seth Vidal 2007-10-22 03:04:46 UTC
baseurls have to start out with a protocol identifier your baseurl is:
baseurl=ftp.wicks.co.nz/pub/linux/dist/fedora/$releasever/$basearch/os/

there's no protocol section. Yours should read:
baseurl=ftp://ftp.wicks.co.nz/pub/linux/dist/fedora/$releasever/$basearch/os/

see the ftp:// section - that's required. So yum's error message was accurate.




Comment 3 morgan read 2007-10-22 07:53:46 UTC
Mr Vidal

I doth my hat and take a bow.

Arrhhhh!!!!
I can't type!
(You didn't need to tell me that.)
Thank you.
M. :-)


Note You need to log in before you can comment on or make changes to this bug.