Mailinglist Archive: zypp-devel (148 mails)
| < Previous | Next > |
[zypp-devel] repo.add.probe override by zypper
- From: Josef Reidinger <jreidinger@xxxxxxx>
- Date: Tue, 11 Mar 2008 13:18:22 +0100
- Message-id: <47D6788E.7010305@xxxxxxx>
Zypper doesn't allow enforce override repo.add.probe (bnc #309612). I
see two ways how allow it (both change libzypp).
First is add to ZConfig function that allow setting this variable and
add repo work as expected.
Second is add to addRepository optional argument probe (by default =
ZConfig::instance().repo_add_probe() ).
Which is better?
Another problem is, that conditional for run probe is
if ( ZConfig::instance().repo_add_probe()
|| ( tosave.type() == RepoType::NONE && tosave.enabled()) )
and help to variable repo.add.probe say
"If false, accessability of repositories is checked when refreshed
(e.g. 'zypper ar' will delay the check until the next refresh)"
so in some situation code doesn't do it.
Is correct conditional and probe is delayed only if type is set or repo
is disabled or second part of conditional is bug?
Josef
--
To unsubscribe, e-mail: zypp-devel+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: zypp-devel+help@xxxxxxxxxxxx
see two ways how allow it (both change libzypp).
First is add to ZConfig function that allow setting this variable and
add repo work as expected.
Second is add to addRepository optional argument probe (by default =
ZConfig::instance().repo_add_probe() ).
Which is better?
Another problem is, that conditional for run probe is
if ( ZConfig::instance().repo_add_probe()
|| ( tosave.type() == RepoType::NONE && tosave.enabled()) )
and help to variable repo.add.probe say
"If false, accessability of repositories is checked when refreshed
(e.g. 'zypper ar' will delay the check until the next refresh)"
so in some situation code doesn't do it.
Is correct conditional and probe is delayed only if type is set or repo
is disabled or second part of conditional is bug?
Josef
--
To unsubscribe, e-mail: zypp-devel+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: zypp-devel+help@xxxxxxxxxxxx
| < Previous | Next > |