|
Bugzilla – Full Text Bug Listing |
| Summary: | refreshing of zypp source does not work in zen | ||
|---|---|---|---|
| Product: | [openSUSE] SUSE Linux 10.1 | Reporter: | Andreas Jaeger <aj> |
| Component: | Zenworks | Assignee: | Klaus Kämpf <kkaempf> |
| Status: | RESOLVED FIXED | QA Contact: | Mauro Parra Miranda <mauro> |
| Severity: | Blocker | ||
| Priority: | P5 - None | CC: | dmacvicar, hmuelle, kkaempf, suse-beta |
| Version: | Final | ||
| Target Milestone: | --- | ||
| Hardware: | Other | ||
| OS: | Other | ||
| Whiteboard: | |||
| Found By: | Other | Services Priority: | |
| Business Priority: | Blocker: | --- | |
| Marketing QA Status: | --- | IT Deployment: | --- |
|
Description
Andreas Jaeger
2006-05-24 12:58:36 UTC
zmd simply removes the catalog and then calls parse-metadata, so if there is something not getting updated it's in the helper. I think I've observed that rug refresh works if the ZYPP metadata is already up-to-date (for example because of a yast2 online_update run). But the ZYPP metadata itself is not refreshed by rug refresh. Reading a source in zypp does not download anything unless cache does not exist or you call store metadata to reread from the URL to the local cache. How is refresh implemented in YaST ? The helpers should use the same implementation. YaST Online update calls SourceRefreshNow() for all sources with autorefresh enabled, which in turn calls Source::refresh(). When is this call executed ? Every time YaST Online Update starts ? Is a call to Source::refresh() equivalent to storeMetadata() as proposed by Duncan ? Whats the autorefresh default for newly created (via libzypp API) sources ? On or Off ? submitted libzypp-zmd-backend to stable with the following limitations: - it refreshes every time 'parse-metadata' is called by ZMD (which is done frequently when zmd is active) - the refresh is limited to 'remote' sources. Refreshing a CD doesn't make sense, but refreshing from a local directory or an NFS server might be appropriate. With that refreshes we need duncan's Code as well that only downloads if something has changed. YaSt does refresh based on autorefresh attribute of a source (so user can force a directory to be refreshed as well), but otherwise, it's OK. |