Bug 401311 - UI Repository Manager writes in wrong format to /etc/yum.repos.d files
Summary: UI Repository Manager writes in wrong format to /etc/yum.repos.d files
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: yum
Version: 8
Hardware: All
OS: Linux
low
low
Target Milestone: ---
Assignee: Jeremy Katz
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2007-11-27 16:32 UTC by Milan Crha
Modified: 2014-01-21 23:00 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2007-11-28 09:14:11 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Milan Crha 2007-11-27 16:32:57 UTC
Description of problem:
When I use Application->Add/Remove Software, Edit->Repositories, and check
something what was not checked before, like updates-testing Fedora 8 x86_64 for
me, then it changes enabled key in 
/etc/yum.repos.d/fedora-updates-testing.repo
but in a way that the line looks like this:
"enabled = 1" (quotes for clarity only).
The problem is that yum itself expects it without those spaces, so like
"enabled=1",
otherwise it doesn't work, i.e. it does not want to update from that repository.


Version-Release number of selected component (if applicable):
yum-metadata-parser-1.1.2-1.fc8
yum-3.2.7-1.fc8
yum-updatesd-0.7-1.fc8
yum-utils-1.1.8-1.fc8

How reproducible:
Always.

Actual results:
Repository is not enabled.

Expected results:
Repository should be enabled, even from UI.

Comment 1 Jeremy Katz 2007-11-27 18:38:02 UTC
The format with the space should be fine -- python-iniparse is doing all of the
reading and writing.

Tim?

Comment 2 Tim Lauridsen 2007-11-28 08:17:05 UTC
(In reply to comment #1)
> The format with the space should be fine -- python-iniparse is doing all of the
> reading and writing.
> 
> Tim?
Agree, 'enabled = 1' & 'enabled=1' both is working.

I cant reproduce this problem.

$ yum repolist
Loading "skip-broken" plugin
Loading "refresh-updatesd" plugin
repo id              repo name                                 status
fedora               Fedora 8 - x86_64                         enabled
livna                Livna for Fedora Core 8 - x86_64 - Base   enabled
updates              Fedora 8 - x86_64 - Updates               enabled
$ pirut
Edit -> Repositoties
Enabled the 'updates-testing' repo
Click on 'Close'
File -> Quit

$ yum repolist
Loading "skip-broken" plugin
Loading "refresh-updatesd" plugin
repo id              repo name                                 status
fedora               Fedora 8 - x86_64                         enabled
livna                Livna for Fedora Core 8 - x86_64 - Base   enabled
updates              Fedora 8 - x86_64 - Updates               enabled
updates-testing      Fedora 8 - x86_64 - Test Updates          enabled

Result is as expected 'updates-testing' is enabled now.

I think when you change the repos in pirut, you have to exit pirut and restart
it, too use the new repositories.




Comment 3 Milan Crha 2007-11-28 09:14:11 UTC
OK, maybe it was the reason, I didn't restart pirut. Marking as NOTABUG, thanks
for explanation.


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