Mailinglist Archive: opensuse-bugs (15077 mails)

< Previous Next >
[Bug 326769] Libzypp tries to access disabled sources in inst_finish
  • From: bugzilla_noreply@xxxxxxxxxx
  • Date: Thu, 20 Sep 2007 06:05:29 -0600 (MDT)
  • Message-id: <20070920120529.6AF90CC7AB@xxxxxxxxxxxxxxxxxxxxxx>
https://bugzilla.novell.com/show_bug.cgi?id=326769#c3


Ján Kupec <jkupec@xxxxxxxxxx> changed:

           What    |Removed                                         |Added
----------------------------------------------------------------------------
                 CC|                                                |dmacvicar@xxxxxxxxxx
             Status|NEW                                             |ASSIGNED




--- Comment #3 from Ján Kupec <jkupec@xxxxxxxxxx>  2007-09-20 06:05:29 MST ---
(In reply to comment #0 from Lukas Ocilka)
> During the inst finish (clients/pkg_finish.ycp:51 Pkg Builtin called:
> SourceFinishAll) libzypp tries to access these sources.
> 
> Source.cc(SourceSaveAll):690 Adding repository
> 'nfs://miracle.suse.cz/install/103A6'
> (repository is disabled and doesn't exist)

Good that you mentioned that the repo has not its type defined. That's probably
why  RepoManager::addRepository() is probing for its type:

// check the first url for now
if ( ZConfig::instance().repo_add_probe() || ( tosave.type() == RepoType::NONE
) )
{ probing code }

maybe this would be better (probe only if enabled):

if ( ZConfig::instance().repo_add_probe() || ( tosave.type() == RepoType::NONE
&& tosave.enabled()) )
{ probing code }

or even (only probe if repo.add.probe=1):

if ( ZConfig::instance().repo_add_probe() )
{ probing code }

and make sure that repo.add.probe is disabled during installation.


-- 
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.
< Previous Next >
References