https://bugzilla.novell.com/show_bug.cgi?id=441078 User lslezak@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=441078#c6 --- Comment #6 from Ladislav Slezak <lslezak@novell.com> 2008-11-24 09:53:32 MST --- Yes, pkg_finish.ycp removes old repositories and then saves the current settings. .. 2008-11-03 14:57:20 <1> firun(3794) [YCP] clients/pkg_finish.ycp:74 Removing target repository /etc/zypp/repos.d/openSUSE-Tools repo 2008-11-03 14:57:20 <1> firun(3794) [YCP] clients/pkg_finish.ycp:82 All old repositories were removed from the target 2008-11-03 14:57:20 <1> firun(3794) [Pkg] clients/pkg_finish.ycp:144 Pkg Builtin called: SourceSaveAll But the exception is caught: try { // if the repository already exists then just modify it repomanager.getRepositoryInfo(current_alias); y2milestone("Modifying repository '%s'", current_alias.c_str()); repomanager.modifyRepository(current_alias, (*it)->repoInfo()); } catch (const zypp::repo::RepoNotFoundException &ex) { // the repository was not found, add it y2milestone("Adding repository '%s'", current_alias.c_str()); repomanager.addRepository((*it)->repoInfo()); } So if the repo file exists is uses modifyRepository() if not (RepoNotFoundException exception has been caught) addRepository() is used. That is correct, isn't it? According to the log the repos should have been added: 2008-11-03 14:57:20 <5> firun(3794) [zypp] Exception.cc(log):119 RepoManager.cc(getRepositoryInfo):1475 THROW: RepoManager.c c(getRepositoryInfo):1475: Repo exception 2008-11-03 14:57:20 <1> firun(3794) [Pkg] Source_Save.cc(SourceSaveAll):216 Adding repository 'factory' 2008-11-03 14:57:20 <1> firun(3794) [Pkg] Callbacks.cc(start):461 ProgressStart: id:1844, Füge Repository 'factory' hinzu 2008-11-03 14:57:20 <1> firun(3794) [Pkg] Callbacks.cc(progress):481 ProgressProgress: id:1844, Füge Repository 'factory' hinzu: 0% 2008-11-03 14:57:20 <1> firun(3794) [Pkg] Callbacks.cc(progress):481 ProgressProgress: id:1844, Füge Repository 'factory' hinzu: 50% 2008-11-03 14:57:20 <1> firun(3794) [zypp] RepoManager.cc(generateFilename):445 generating filename for repo [factory] : './factory.repo' 2008-11-03 14:57:20 <1> firun(3794) [zypp] RepoManager.cc(addRepository):1233 Saving repo in /mnt/etc/zypp/repos.d/factory.repo 2008-11-03 14:57:20 <1> firun(3794) [Pkg] Callbacks.cc(progress):481 ProgressProgress: id:1844, Füge Repository 'factory' hinzu: 90% 2008-11-03 14:57:20 <1> firun(3794) [Pkg] Callbacks.cc(progress):481 ProgressProgress: id:1844, Füge Repository 'factory' hinzu: 100% 2008-11-03 14:57:20 <1> firun(3794) [zypp] RepoManager.cc(addRepository):1269 done 2008-11-03 14:57:20 <1> firun(3794) [Pkg] Callbacks.cc(progress):481 ProgressProgress: id:1844, Füge Repository 'factory' hinzu: 100% 2008-11-03 14:57:20 <1> firun(3794) [Pkg] Callbacks.cc(finish):498 ProgressFinish: id:1844, Füge Repository 'factory' hinzu -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.