Bug 668261

Summary: Fedora 14: Import already registered repositories
Product: [openSUSE] openSUSE 11.3 Reporter: Stefan Haas <haas273>
Component: libzyppAssignee: E-mail List <zypp-maintainers>
Status: RESOLVED FIXED QA Contact: E-mail List <qa-bugs>
Severity: Enhancement    
Priority: P5 - None CC: dheidler
Version: Final   
Target Milestone: ---   
Hardware: All   
OS: Other   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description Stefan Haas 2011-01-31 09:42:28 UTC
User-Agent:       Mozilla/5.0 (X11; U; Linux x86_64; de; rv:1.9.2.13) Gecko/20110103 Fedora/3.6.13-1.fc14 Firefox/3.6.13

Feature request for libzypp/zypper:

libzypp/zypper should import all already registered repositories.

System: Fedora 14
libzypp: libzypp-8.12.0-3.1.x86_64
zypper: zypper-1.5.3-3.2.x86_64

Reproducible: Always

Steps to Reproduce:
1. Install zypper on a Fedora 14 system
2. zypper lr shows that no repository is available
3. yum repolist
Repo-ID                                                 Repo-Name:                                                          Status
fedora                                                  Fedora 14 - x86_64                                                  22.161
fedora-debuginfo                                        Fedora 14 - x86_64 - Debug                                           5.333
fedora-source                                           Fedora 14 - Source                                                       0
updates                                                 Fedora 14 - x86_64 - Updates                                         5.825
repolist: 33.319
Comment 1 Dominik Heidler 2011-04-08 09:17:35 UTC
this is because of the diferent repo-path of zypp.

zypp searches at /etc/zypp/repos.d/
while yum has its repos at /etc/yum.repos.d/

you can configure the path in /etc/zypp/zypp.conf

simply add:
reposdir = /etc/yum.repos.d


we should add some magic to add this line by default, when building for fedora
Comment 2 Dominik Heidler 2011-04-08 15:24:07 UTC
fixed in git commit 583e3ed13cc062109f1b5e8eca95f3a25ec4ece9

the zypp repofolder /etc/zypp/repos.d/
will be a symlink to /etc/yum.repos.d in fedora.