Bug 306615

Summary: Factory excessive refresh (missing zypp.conf default + doc)
Product: [openSUSE] openSUSE 10.3 Reporter: Klaus Kämpf <kkaempf>
Component: libzyppAssignee: Michael Andres <ma>
Status: RESOLVED FIXED QA Contact: Stanislav Visnovsky <visnov>
Severity: Normal    
Priority: P5 - None CC: dmacvicar, lnussel, ma
Version: Beta 2   
Target Milestone: ---   
Hardware: x86-64   
OS: Other   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Attachments: zypp.conf draft
sample /etc/zypp.conf

Description Klaus Kämpf 2007-08-31 07:56:12 UTC
I have factory enabled and zypper tries to refresh it within _minutes_.

E.g.

> zypper rm foo
Refreshing 'factory'

... wait 2-3 minutes

> zypper in foo
Refreshing 'factory'


The refresh interval default should be more saner. E.g. 8 hours (or even 24)
Comment 4 Jan Kupec 2007-08-31 09:42:51 UTC
(In reply to comment #3 from Klaus Kämpf)
> Feel free to downgrade ;-)

The default is 10 minutes. Even then it doesn't get *refreshed* if not changed. If it gets refreshed even if not changed, then _that_'s a major bug! Otherwise it is just a documentation and missing default zypp.conf bug (minor).

> However, I'd like to see some documentation (either in the package, man-page,
> or wiki) how to tune the refresh settings.
> 
> By default, libzypp seems not to create a .conf file.
> 
> Creating a default .conf file with lots of comments could help.

Good idea. Then we can also simply point to that file from the wiki, and from wikies of zypper, yast, etc.

I'd like to take care of this, but if it is urgent, and can't be done a week later, i'd like someone familiar with packaging conf files (%pre, %post, %preun, %postun handling) to take care of it. Duncan maybe? :O)
Comment 5 Jan Kupec 2007-09-04 13:55:18 UTC
*** Bug 307359 has been marked as a duplicate of this bug. ***
Comment 6 Jan Kupec 2007-09-05 08:42:22 UTC
Created attachment 161895 [details]
zypp.conf draft

I documented the two zypp.conf options i understand and am using right now. Duncan please check these and add yours.

Where do we put it in the svn?
Comment 7 Michael Andres 2007-09-07 13:28:42 UTC
Created a sample zypp.conf based on the one posted yesterday to zypp-devel.
It is packaged as

   %config(noreplace) /etc/zypp/zypp.conf


in libzypp-3.22.5
Comment 8 Michael Andres 2007-09-07 13:29:29 UTC
Created attachment 162726 [details]
sample /etc/zypp.conf
Comment 9 Michael Andres 2007-09-07 13:30:01 UTC
fixed