Hello community,
here is the log from the commit of package yast2-pkg-bindings
checked in at Mon Sep 29 18:29:02 CEST 2008.
--------
--- yast2-pkg-bindings/yast2-pkg-bindings.changes 2008-09-25 17:56:36.000000000 +0200
+++ /mounts/work_src_done/STABLE/yast2-pkg-bindings/yast2-pkg-bindings.changes 2008-09-29 15:54:49.437572000 +0200
@@ -1,0 +2,11 @@
+Mon Sep 29 14:27:21 CEST 2008 - lslezak@suse.cz
+
+- do not autorefresh remote repositories when there is no network
+ connection (affected calls Pkg::SourceLoad(),
+ Pkg::SourceStartManager() and PkgFunctions::SourceStartCache())
+ (bnc#401966)
+- ResolvableProperties() - return more info about product
+ ("register_target", "register_release" and "flavor" keys)
+- 2.17.16
+
+-------------------------------------------------------------------
Old:
----
yast2-pkg-bindings-2.17.15.tar.bz2
New:
----
yast2-pkg-bindings-2.17.16.tar.bz2
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ yast2-pkg-bindings-devel-doc.spec ++++++
--- /var/tmp/diff_new_pack.P12533/_old 2008-09-29 18:28:50.000000000 +0200
+++ /var/tmp/diff_new_pack.P12533/_new 2008-09-29 18:28:50.000000000 +0200
@@ -1,5 +1,5 @@
#
-# spec file for package yast2-pkg-bindings-devel-doc (Version 2.17.15)
+# spec file for package yast2-pkg-bindings-devel-doc (Version 2.17.16)
#
# Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
@@ -19,12 +19,12 @@
Name: yast2-pkg-bindings-devel-doc
-Version: 2.17.15
+Version: 2.17.16
Release: 1
License: GPL v2 or later
Group: Documentation/HTML
BuildRoot: %{_tmppath}/%{name}-%{version}-build
-Source0: yast2-pkg-bindings-2.17.15.tar.bz2
+Source0: yast2-pkg-bindings-2.17.16.tar.bz2
Prefix: %_prefix
# same as in the main package (because we use the same configure.in.in)
BuildRequires: blocxx-devel docbook-xsl-stylesheets doxygen gcc-c++ libgcrypt-devel libxcrypt-devel libxslt libzypp-devel perl-XML-Writer sgml-skel yast2-core-devel yast2-devtools
@@ -45,7 +45,7 @@
Ladislav Slez�k
%prep
-%setup -n yast2-pkg-bindings-2.17.15
+%setup -n yast2-pkg-bindings-2.17.16
# build only documentation, ignore all other directories
echo "doc" > SUBDIRS
@@ -76,7 +76,6 @@
%dir %{prefix}/share/doc/packages/yast2-pkg-bindings
%exclude %{prefix}/share/doc/packages/yast2-pkg-bindings/COPYING
%exclude %{prefix}/share/doc/packages/yast2-pkg-bindings/README
-
%changelog
* Fri May 16 2008 lslezak@suse.cz
- documented lock API
++++++ yast2-pkg-bindings.spec ++++++
--- /var/tmp/diff_new_pack.P12533/_old 2008-09-29 18:28:50.000000000 +0200
+++ /var/tmp/diff_new_pack.P12533/_new 2008-09-29 18:28:50.000000000 +0200
@@ -1,5 +1,5 @@
#
-# spec file for package yast2-pkg-bindings (Version 2.17.15)
+# spec file for package yast2-pkg-bindings (Version 2.17.16)
#
# Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
@@ -19,12 +19,12 @@
Name: yast2-pkg-bindings
-Version: 2.17.15
+Version: 2.17.16
Release: 1
License: GPL v2 or later
Group: System/YaST
BuildRoot: %{_tmppath}/%{name}-%{version}-build
-Source0: yast2-pkg-bindings-2.17.15.tar.bz2
+Source0: yast2-pkg-bindings-2.17.16.tar.bz2
Prefix: /usr
BuildRequires: blocxx-devel docbook-xsl-stylesheets doxygen gcc-c++ libgcrypt-devel libxcrypt-devel libxslt perl-XML-Writer sgml-skel yast2-core-devel yast2-devtools
BuildRequires: libzypp-devel >= 5.10.0
@@ -47,7 +47,7 @@
Stanislav Visnovsky
%prep
-%setup -n yast2-pkg-bindings-2.17.15
+%setup -n yast2-pkg-bindings-2.17.16
# build only the library, ignore documentation (it is in devel-doc package)
echo "src" > SUBDIRS
@@ -78,8 +78,15 @@
%{_libdir}/YaST2/plugin/libpy2Pkg.so.*
%{_libdir}/YaST2/plugin/libpy2Pkg.so
%doc %{prefix}/share/doc/packages/yast2-pkg-bindings
-
%changelog
+* Mon Sep 29 2008 lslezak@suse.cz
+- do not autorefresh remote repositories when there is no network
+ connection (affected calls Pkg::SourceLoad(),
+ Pkg::SourceStartManager() and PkgFunctions::SourceStartCache())
+ (bnc#401966)
+- ResolvableProperties() - return more info about product
+ ("register_target", "register_release" and "flavor" keys)
+- 2.17.16
* Thu Sep 25 2008 lslezak@suse.cz
- removed another usage of the old logging (bnc#429954)
- 2.17.15
++++++ yast2-pkg-bindings-2.17.15.tar.bz2 -> yast2-pkg-bindings-2.17.16.tar.bz2 ++++++
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/yast2-pkg-bindings-2.17.15/configure new/yast2-pkg-bindings-2.17.16/configure
--- old/yast2-pkg-bindings-2.17.15/configure 2008-09-25 17:55:55.000000000 +0200
+++ new/yast2-pkg-bindings-2.17.16/configure 2008-09-29 15:53:54.000000000 +0200
@@ -1,6 +1,6 @@
#! /bin/sh
# Guess values for system-dependent variables and create Makefiles.
-# Generated by GNU Autoconf 2.61 for yast2-pkg-bindings 2.17.15.
+# Generated by GNU Autoconf 2.61 for yast2-pkg-bindings 2.17.16.
#
# Report bugs to http://bugs.opensuse.org/.
#
@@ -728,8 +728,8 @@
# Identity of this package.
PACKAGE_NAME='yast2-pkg-bindings'
PACKAGE_TARNAME='yast2-pkg-bindings'
-PACKAGE_VERSION='2.17.15'
-PACKAGE_STRING='yast2-pkg-bindings 2.17.15'
+PACKAGE_VERSION='2.17.16'
+PACKAGE_STRING='yast2-pkg-bindings 2.17.16'
PACKAGE_BUGREPORT='http://bugs.opensuse.org/'
ac_unique_file="RPMNAME"
@@ -1453,7 +1453,7 @@
# Omit some internal or obsolete options to make the list less imposing.
# This message is too long to be a string in the A/UX 3.1 sh.
cat <<_ACEOF
-\`configure' configures yast2-pkg-bindings 2.17.15 to adapt to many kinds of systems.
+\`configure' configures yast2-pkg-bindings 2.17.16 to adapt to many kinds of systems.
Usage: $0 [OPTION]... [VAR=VALUE]...
@@ -1524,7 +1524,7 @@
if test -n "$ac_init_help"; then
case $ac_init_help in
- short | recursive ) echo "Configuration of yast2-pkg-bindings 2.17.15:";;
+ short | recursive ) echo "Configuration of yast2-pkg-bindings 2.17.16:";;
esac
cat <<\_ACEOF
@@ -1636,7 +1636,7 @@
test -n "$ac_init_help" && exit $ac_status
if $ac_init_version; then
cat <<\_ACEOF
-yast2-pkg-bindings configure 2.17.15
+yast2-pkg-bindings configure 2.17.16
generated by GNU Autoconf 2.61
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
@@ -1650,7 +1650,7 @@
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
-It was created by yast2-pkg-bindings $as_me 2.17.15, which was
+It was created by yast2-pkg-bindings $as_me 2.17.16, which was
generated by GNU Autoconf 2.61. Invocation command line was
$ $0 $@
@@ -2471,7 +2471,7 @@
# Define the identity of the package.
PACKAGE='yast2-pkg-bindings'
- VERSION='2.17.15'
+ VERSION='2.17.16'
cat >>confdefs.h <<_ACEOF
@@ -2699,7 +2699,7 @@
-VERSION="2.17.15"
+VERSION="2.17.16"
RPMNAME="yast2-pkg-bindings"
MAINTAINER="Ladislav Slezák "
@@ -21700,7 +21700,7 @@
# report actual input values of CONFIG_FILES etc. instead of their
# values after options handling.
ac_log="
-This file was extended by yast2-pkg-bindings $as_me 2.17.15, which was
+This file was extended by yast2-pkg-bindings $as_me 2.17.16, which was
generated by GNU Autoconf 2.61. Invocation command line was
CONFIG_FILES = $CONFIG_FILES
@@ -21753,7 +21753,7 @@
_ACEOF
cat >>$CONFIG_STATUS <<_ACEOF
ac_cs_version="\\
-yast2-pkg-bindings config.status 2.17.15
+yast2-pkg-bindings config.status 2.17.16
configured by $0, generated by GNU Autoconf 2.61,
with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/yast2-pkg-bindings-2.17.15/configure.in new/yast2-pkg-bindings-2.17.16/configure.in
--- old/yast2-pkg-bindings-2.17.15/configure.in 2008-09-25 17:55:42.000000000 +0200
+++ new/yast2-pkg-bindings-2.17.16/configure.in 2008-09-29 15:53:41.000000000 +0200
@@ -3,7 +3,7 @@
dnl -- This file is generated by y2autoconf 2.17.3 - DO NOT EDIT! --
dnl (edit configure.in.in instead)
-AC_INIT(yast2-pkg-bindings, 2.17.15, http://bugs.opensuse.org/, yast2-pkg-bindings)
+AC_INIT(yast2-pkg-bindings, 2.17.16, http://bugs.opensuse.org/, yast2-pkg-bindings)
dnl Check for presence of file 'RPMNAME'
AC_CONFIG_SRCDIR([RPMNAME])
@@ -18,7 +18,7 @@
AM_INIT_AUTOMAKE(tar-ustar -Wno-portability)
dnl Important YaST2 variables
-VERSION="2.17.15"
+VERSION="2.17.16"
RPMNAME="yast2-pkg-bindings"
MAINTAINER="Ladislav Slezák "
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/yast2-pkg-bindings-2.17.15/src/Makefile.am new/yast2-pkg-bindings-2.17.16/src/Makefile.am
--- old/yast2-pkg-bindings-2.17.15/src/Makefile.am 2008-09-01 17:28:58.000000000 +0200
+++ new/yast2-pkg-bindings-2.17.16/src/Makefile.am 2008-09-29 14:52:12.000000000 +0200
@@ -54,6 +54,7 @@
PkgService.cc PkgService.h \
ServiceManager.cc ServiceManager.h \
Service.cc \
+ Network.cc \
HelpTexts.h i18n.h log.h
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/yast2-pkg-bindings-2.17.15/src/Makefile.in new/yast2-pkg-bindings-2.17.16/src/Makefile.in
--- old/yast2-pkg-bindings-2.17.15/src/Makefile.in 2008-09-25 17:55:59.000000000 +0200
+++ new/yast2-pkg-bindings-2.17.16/src/Makefile.in 2008-09-29 15:53:57.000000000 +0200
@@ -68,7 +68,7 @@
Source_Resolvables.lo Source_Save.lo Source_Set.lo Keyring.lo \
GPGMap.lo Callbacks.YCP.lo Callbacks.lo Callbacks_Register.lo \
Y2PkgFunction.lo YRepo.lo PkgService.lo ServiceManager.lo \
- Service.lo
+ Service.lo Network.lo
libpy2Pkg_la_OBJECTS = $(am_libpy2Pkg_la_OBJECTS)
libpy2Pkg_la_LINK = $(LIBTOOL) --tag=CXX $(AM_LIBTOOLFLAGS) \
$(LIBTOOLFLAGS) --mode=link $(CXXLD) $(AM_CXXFLAGS) \
@@ -305,6 +305,7 @@
PkgService.cc PkgService.h \
ServiceManager.cc ServiceManager.h \
Service.cc \
+ Network.cc \
HelpTexts.h i18n.h log.h
libpy2Pkg_la_LDFLAGS = -version-info 2:0
@@ -395,6 +396,7 @@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/Keyring.Plo@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/Locale.Plo@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/Locks.Plo@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/Network.Plo@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/Package.Plo@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/Patch.Plo@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/PkgError.Plo@am__quote@
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/yast2-pkg-bindings-2.17.15/src/Network.cc new/yast2-pkg-bindings-2.17.16/src/Network.cc
--- old/yast2-pkg-bindings-2.17.15/src/Network.cc 1970-01-01 01:00:00.000000000 +0100
+++ new/yast2-pkg-bindings-2.17.16/src/Network.cc 2008-09-29 14:49:58.000000000 +0200
@@ -0,0 +1,68 @@
+/* ------------------------------------------------------------------------------
+ * Copyright (c) 2008 Novell, Inc. All Rights Reserved.
+ *
+ *
+ * This program is free software; you can redistribute it and/or modify it under
+ * the terms of version 2 of the GNU General Public License as published by the
+ * Free Software Foundation.
+ *
+ * This program is distributed in the hope that it will be useful, but WITHOUT
+ * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
+ * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License along with
+ * this program; if not, contact Novell, Inc.
+ *
+ * To contact Novell about this file by physical or electronic mail, you may find
+ * current contact information at www.novell.com.
+ * ------------------------------------------------------------------------------
+ */
+
+/*
+ File: $Id: Source_Load.cc 49526 2008-07-30 13:28:18Z mvidner $
+ Author: Ladislav Slezák
+ Summary: Network related functions
+ Namespace: Pkg
+*/
+
+
+#include
+#include "log.h"
+
+// system()
+#include <cstdlib>
+
+#include
+
+/*
+ Textdomain "pkg-bindings"
+*/
+
+/*
+ A helper function
+ Detect whether there is a network connection.
+ See isNetworkRunning() function in NetworkService.ycp
+*/
+bool PkgFunctions::NetworkDetected()
+{
+ y2milestone("Checking the network status...");
+ int result = ::system("ip addr|grep -v 'inet6 ::1\\|inet6 fe80'|grep -c inet6");
+ y2milestone("Network is running: %s", (result == 0) ? "yes" : "no");
+
+ return !result;
+}
+
+/*
+ A helper function
+ Is the URL remote?
+*/
+bool PkgFunctions::remoteRepo(const zypp::Url &url)
+{
+ // is it a remote repository?
+ std::string scheme(zypp::str::toLower(url.getScheme()));
+
+ y2debug("Repository schema: %s", scheme.c_str());
+
+ return (scheme == "ftp" || scheme == "http" || scheme == "https" || scheme == "nfs"
+ || scheme == "smb");
+}
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/yast2-pkg-bindings-2.17.15/src/PkgFunctions.h new/yast2-pkg-bindings-2.17.16/src/PkgFunctions.h
--- old/yast2-pkg-bindings-2.17.15/src/PkgFunctions.h 2008-09-25 17:50:54.000000000 +0200
+++ new/yast2-pkg-bindings-2.17.16/src/PkgFunctions.h 2008-09-29 14:54:51.000000000 +0200
@@ -112,13 +112,19 @@
YCPValue SourceRefreshHelper(const YCPInteger &id, bool forced = false);
+ // helper - is the network running?
+ bool NetworkDetected();
+
+ // is the URL remote?
+ bool remoteRepo(const zypp::Url &url);
+
// conversion methods for type string between Yast and libzypp (for backward compatibility)
std::string zypp2yastType(const std::string &type);
std::string yast2zyppType(const std::string &type);
void RemoveResolvablesFrom(const std::string &alias);
bool AnyResolvableFrom(const std::string &alias);
- bool LoadResolvablesFrom(const zypp::RepoInfo &repoinfo, const zypp::ProgressData::ReceiverFnc & progressrcv = zypp::ProgressData::ReceiverFnc());
+ bool LoadResolvablesFrom(const zypp::RepoInfo &repoinfo, const zypp::ProgressData::ReceiverFnc & progressrcv = zypp::ProgressData::ReceiverFnc(), bool network_check = false);
std::string UniqueAlias(const std::string &alias);
YCPValue GetPkgLocation(const YCPString& p, bool full_path);
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/yast2-pkg-bindings-2.17.15/src/Resolvable_Properties.cc new/yast2-pkg-bindings-2.17.16/src/Resolvable_Properties.cc
--- old/yast2-pkg-bindings-2.17.15/src/Resolvable_Properties.cc 2008-09-24 08:54:31.000000000 +0200
+++ new/yast2-pkg-bindings-2.17.16/src/Resolvable_Properties.cc 2008-09-26 08:48:36.000000000 +0200
@@ -92,6 +92,9 @@
+ "optional_urls"
+ "register_urls"
+ "smolt_urls"
+ + "register_target"
+ + "register_release"
+ + "flavor"
+ "replaces"
+ "name"
+ "version"
@@ -397,6 +400,13 @@
info->add(YCPString("smolt_urls"), smoltUrls);
}
+ // registration data
+ info->add(YCPString("register_target"), YCPString(product->registerTarget()));
+ info->add(YCPString("register_release"), YCPString(product->registerRelease()));
+
+ // Live CD, FTP Edition...
+ info->add(YCPString("flavor"), YCPString(product->flavor()));
+
// get the installed Products it would replace.
zypp::Product::ReplacedProducts replaced(product->replacedProducts());
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/yast2-pkg-bindings-2.17.15/src/Source_Load.cc new/yast2-pkg-bindings-2.17.16/src/Source_Load.cc
--- old/yast2-pkg-bindings-2.17.15/src/Source_Load.cc 2008-08-05 15:38:46.000000000 +0200
+++ new/yast2-pkg-bindings-2.17.16/src/Source_Load.cc 2008-09-29 15:51:38.000000000 +0200
@@ -19,7 +19,7 @@
*/
/*
- File: $Id: Source_Load.cc 49526 2008-07-30 13:28:18Z mvidner $
+ File: $Id: Source_Load.cc 51657 2008-09-29 13:51:36Z lslezak $
Author: Ladislav Slezák
Summary: Functions for initializing the package manager
Namespace: Pkg
@@ -190,6 +190,8 @@
autorefresh_skipped = false;
CallRefreshStarted();
+ bool network_is_running = NetworkDetected();
+
if (repos_to_refresh > 0)
{
// refresh metadata
@@ -216,6 +218,19 @@
// autorefresh the source
if ((*it)->repoInfo().autorefresh() || raw_metadata_status.empty())
{
+ // do not autorefresh remote repositories when the network is not running
+ if (!network_is_running)
+ {
+ zypp::Url url = *((*it)->repoInfo().baseUrlsBegin());
+
+ if (remoteRepo(url))
+ {
+ y2warning("No network connection, skipping autorefresh of remote repository %s (%s)",
+ (*it)->repoInfo().alias().c_str(), url.asString().c_str());
+ continue;
+ }
+ }
+
try
{
y2milestone("Autorefreshing source: %s", (*it)->repoInfo().alias().c_str());
@@ -279,16 +294,13 @@
// autorefresh the source
if ((*it)->repoInfo().autorefresh())
{
- if (autorefresh_skipped)
- {
- zypp::RepoStatus raw_metadata_status = repomanager.metadataStatus((*it)->repoInfo());
+ zypp::RepoStatus raw_metadata_status = repomanager.metadataStatus((*it)->repoInfo());
- // autorefresh the source
- if (raw_metadata_status.empty() )
- {
- y2error("Missinga metadata, not rebuilding the cache");
- continue;
- }
+ // autorefresh the source
+ if (raw_metadata_status.empty() )
+ {
+ y2error("Missinga metadata, not rebuilding the cache");
+ continue;
}
try
@@ -352,8 +364,8 @@
}
else
{
- // load objects
- success = LoadResolvablesFrom((*it)->repoInfo(), load_subprogress) && success;
+ // load objects, do network status check
+ success = LoadResolvablesFrom((*it)->repoInfo(), load_subprogress, true) && success;
}
}
y2debug("Progress status: %lld", prog_total.val());
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/yast2-pkg-bindings-2.17.15/src/Source_Resolvables.cc new/yast2-pkg-bindings-2.17.16/src/Source_Resolvables.cc
--- old/yast2-pkg-bindings-2.17.15/src/Source_Resolvables.cc 2008-06-17 14:44:14.000000000 +0200
+++ new/yast2-pkg-bindings-2.17.16/src/Source_Resolvables.cc 2008-09-29 15:51:38.000000000 +0200
@@ -19,7 +19,7 @@
*/
/*
- File: $Id: Source_Resolvables.cc 48353 2008-06-17 12:44:13Z lslezak $
+ File: $Id: Source_Resolvables.cc 51657 2008-09-29 13:51:36Z lslezak $
Author: Ladislav Slezák
Summary: Functions for adding/removing resolvables in the pool
Namespace: Pkg
@@ -64,7 +64,7 @@
* A helper function - load resolvable from the repository into the pool
* Warning: Use AnyResolvableFrom() method for checing if the resolvables might be already loaded
*/
-bool PkgFunctions::LoadResolvablesFrom(const zypp::RepoInfo &repoinfo, const zypp::ProgressData::ReceiverFnc &progressrcv)
+bool PkgFunctions::LoadResolvablesFrom(const zypp::RepoInfo &repoinfo, const zypp::ProgressData::ReceiverFnc &progressrcv, bool network_check)
{
bool success = true;
unsigned int size_start = zypp_ptr()->pool().size();
@@ -78,6 +78,7 @@
try
{
zypp::RepoManager repomanager = CreateRepoManager();
+ bool refresh = true;
// build cache if needed
if (!repomanager.isCached(repoinfo) && !autorefresh_skipped)
@@ -85,17 +86,36 @@
zypp::RepoStatus raw_metadata_status = repomanager.metadataStatus(repoinfo);
if (raw_metadata_status.empty())
{
- y2milestone("Missing metadata for source '%s', downloading...", repoinfo.alias().c_str());
+ if (network_check)
+ {
+ zypp::Url url = *(repoinfo.baseUrlsBegin());
- CallRefreshStarted();
+ if (remoteRepo(url) && !NetworkDetected())
+ {
+ y2warning("No network connection, skipping autorefresh of remote repository %s (%s)",
+ repoinfo.alias().c_str(), url.asString().c_str());
- RefreshWithCallbacks(repoinfo);
+ refresh = false;
+ }
+ }
- CallRefreshDone();
+ if (refresh)
+ {
+ y2milestone("Missing metadata for source '%s', downloading...", repoinfo.alias().c_str());
+
+ CallRefreshStarted();
+
+ RefreshWithCallbacks(repoinfo);
+
+ CallRefreshDone();
+ }
}
- y2milestone("Caching source '%s'...", repoinfo.alias().c_str());
- repomanager.buildCache(repoinfo, zypp::RepoManager::BuildIfNeeded, load_subprogress);
+ if (refresh)
+ {
+ y2milestone("Caching source '%s'...", repoinfo.alias().c_str());
+ repomanager.buildCache(repoinfo, zypp::RepoManager::BuildIfNeeded, load_subprogress);
+ }
}
repomanager.loadFromCache(repoinfo);
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/yast2-pkg-bindings-2.17.15/VERSION new/yast2-pkg-bindings-2.17.16/VERSION
--- old/yast2-pkg-bindings-2.17.15/VERSION 2008-09-25 17:54:46.000000000 +0200
+++ new/yast2-pkg-bindings-2.17.16/VERSION 2008-09-29 15:53:27.000000000 +0200
@@ -1 +1 @@
-2.17.15
+2.17.16
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Remember to have fun...
--
To unsubscribe, e-mail: opensuse-commit+unsubscribe@opensuse.org
For additional commands, e-mail: opensuse-commit+help@opensuse.org