[yast-commit] r39788 - in /trunk/pkg-bindings: VERSION package/yast2-pkg-bindings.changes src/Source.cc
Author: lslezak Date: Mon Jul 30 15:20:05 2007 New Revision: 39788 URL: http://svn.opensuse.org/viewcvs/yast?rev=39788&view=rev Log: - download missing metadata before building the cache (required for repositories added in offline mode) - 2.15.36 Modified: trunk/pkg-bindings/VERSION trunk/pkg-bindings/package/yast2-pkg-bindings.changes trunk/pkg-bindings/src/Source.cc Modified: trunk/pkg-bindings/VERSION URL: http://svn.opensuse.org/viewcvs/yast/trunk/pkg-bindings/VERSION?rev=39788&r1=39787&r2=39788&view=diff ============================================================================== --- trunk/pkg-bindings/VERSION (original) +++ trunk/pkg-bindings/VERSION Mon Jul 30 15:20:05 2007 @@ -1 +1 @@ -2.15.35 +2.15.36 Modified: trunk/pkg-bindings/package/yast2-pkg-bindings.changes URL: http://svn.opensuse.org/viewcvs/yast/trunk/pkg-bindings/package/yast2-pkg-bindings.changes?rev=39788&r1=39787&r2=39788&view=diff ============================================================================== --- trunk/pkg-bindings/package/yast2-pkg-bindings.changes (original) +++ trunk/pkg-bindings/package/yast2-pkg-bindings.changes Mon Jul 30 15:20:05 2007 @@ -1,4 +1,11 @@ ------------------------------------------------------------------- +Mon Jul 30 15:06:16 CEST 2007 - lslezak@suse.cz + +- download missing metadata before building the cache (required + for repositories added in offline mode) +- 2.15.36 + +------------------------------------------------------------------- Fri Jul 27 11:19:44 CEST 2007 - lslezak@suse.cz - support for "raw" Progress callbacks Modified: trunk/pkg-bindings/src/Source.cc URL: http://svn.opensuse.org/viewcvs/yast/trunk/pkg-bindings/src/Source.cc?rev=39788&r1=39787&r2=39788&view=diff ============================================================================== --- trunk/pkg-bindings/src/Source.cc (original) +++ trunk/pkg-bindings/src/Source.cc Mon Jul 30 15:20:05 2007 @@ -2162,6 +2162,13 @@ // build cache if needed if (!repomanager.isCached(repoinfo)) { + zypp::RepoStatus raw_metadata_status = repomanager.metadataStatus(repoinfo); + if (raw_metadata_status.empty()) + { + y2milestone("Missing metadata for source '%s', downloading...", repoinfo.alias().c_str()); + repomanager.refreshMetadata(repoinfo); + } + y2milestone("Caching source '%s'...", repoinfo.alias().c_str()); repomanager.buildCache(repoinfo); } -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org
participants (1)
-
lslezak@svn.opensuse.org