Hello community,
here is the log from the commit of package yast2-pkg-bindings for openSUSE:Factory
checked in at Fri Jul 10 16:46:35 CEST 2009.
--------
--- yast2-pkg-bindings/yast2-pkg-bindings.changes 2009-06-16 15:59:43.000000000 +0200
+++ yast2-pkg-bindings/yast2-pkg-bindings.changes 2009-07-10 13:33:51.000000000 +0200
@@ -1,0 +2,14 @@
+Fri Jul 10 11:18:04 CEST 2009 - lslezak@suse.cz
+
+- clean existing cache for added repositories, do not reuse
+ existing aliases for new repositories, make the new aliases
+ really unique (bnc#519218, bnc#327490)
+- 2.18.9
+
+-------------------------------------------------------------------
+Wed Jul 8 15:09:09 CEST 2009 - ma@suse.de
+
+- Remove references to deprecated UpgradeStatistics.
+- 2.18.8
+
+-------------------------------------------------------------------
calling whatdependson for head-i586
Old:
----
yast2-pkg-bindings-2.18.7.tar.bz2
New:
----
yast2-pkg-bindings-2.18.9.tar.bz2
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ yast2-pkg-bindings-devel-doc.spec ++++++
--- /var/tmp/diff_new_pack.26ou69/_old 2009-07-10 16:46:05.000000000 +0200
+++ /var/tmp/diff_new_pack.26ou69/_new 2009-07-10 16:46:05.000000000 +0200
@@ -1,5 +1,5 @@
#
-# spec file for package yast2-pkg-bindings-devel-doc (Version 2.18.7)
+# spec file for package yast2-pkg-bindings-devel-doc (Version 2.18.9)
#
# Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
@@ -19,12 +19,12 @@
Name: yast2-pkg-bindings-devel-doc
-Version: 2.18.7
+Version: 2.18.9
Release: 1
-License: GPL v2 or later
+License: GPL
Group: Documentation/HTML
BuildRoot: %{_tmppath}/%{name}-%{version}-build
-Source0: yast2-pkg-bindings-2.18.7.tar.bz2
+Source0: yast2-pkg-bindings-2.18.9.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
@@ -38,14 +38,8 @@
namespace) used in YaST scripts. The documentation is autogenerated
from the pkg-bindings sources.
-
-
-Authors:
---------
- Ladislav Slez�k
-
%prep
-%setup -n yast2-pkg-bindings-2.18.7
+%setup -n yast2-pkg-bindings-2.18.9
# build only documentation, ignore all other directories
echo "doc" > SUBDIRS
@@ -79,22 +73,3 @@
%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
-- 2.16.35
-* Thu Apr 03 2008 ma@suse.de
-- use repo name as mediaset label.
-* Tue Mar 11 2008 coolo@suse.de
-- devtools requires redudant prefix definition
-* Wed Mar 05 2008 coolo@suse.de
-- fixing spec file syntax
-* Tue Dec 18 2007 lslezak@suse.cz
-- updated generating of the documentation to the new source file
- layout
-- 2.16.7
-* Wed Oct 03 2007 mvidner@suse.cz
-- Do not try to package COPYRIGHT.english, it is gone from
- devtools (#299144).
-- 2.16.0
-* Thu Jul 26 2007 lslezak@suse.cz
-- Initial version
++++++ yast2-pkg-bindings.spec ++++++
--- /var/tmp/diff_new_pack.26ou69/_old 2009-07-10 16:46:05.000000000 +0200
+++ /var/tmp/diff_new_pack.26ou69/_new 2009-07-10 16:46:05.000000000 +0200
@@ -1,5 +1,5 @@
#
-# spec file for package yast2-pkg-bindings (Version 2.18.7)
+# spec file for package yast2-pkg-bindings (Version 2.18.9)
#
# Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
@@ -19,15 +19,15 @@
Name: yast2-pkg-bindings
-Version: 2.18.7
+Version: 2.18.9
Release: 1
-License: GPL v2 or later
-Group: System/YaST
BuildRoot: %{_tmppath}/%{name}-%{version}-build
-Source0: yast2-pkg-bindings-2.18.7.tar.bz2
+Source0: yast2-pkg-bindings-2.18.9.tar.bz2
Prefix: /usr
+Group: System/YaST
+License: GPL v2 or later
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 >= 6.6.0
+BuildRequires: libzypp-devel >= 6.10.0
# new GPG callbacks
Requires: libzypp >= 6.6.0
Summary: YaST2 - Package Manager Access
@@ -36,18 +36,8 @@
This package contains a name space for accessing the package manager
library in YaST2.
-
-
-Authors:
---------
- Arvin Schnell
- Klaus Kaempf
- Mathias Kettner
- Stefan Hundhammer
- Stanislav Visnovsky
-
%prep
-%setup -n yast2-pkg-bindings-2.18.7
+%setup -n yast2-pkg-bindings-2.18.9
# build only the library, ignore documentation (it is in devel-doc package)
echo "src" > SUBDIRS
@@ -71,6 +61,8 @@
%suse_update_desktop_file -d ycc_${d%.desktop} ${d%.desktop}
done
rm -rf %{buildroot}/%{_libdir}/YaST2/plugin/libpy2Pkg.la
+rm -rf %{buildroot}/%{_libdir}/YaST2/plugin/libpy2Pkg.so
+rm -rf %{buildroot}/%{_libdir}/YaST2/plugin/libpy2Pkgzypp.la
%clean
rm -rf "$RPM_BUILD_ROOT"
@@ -78,5 +70,6 @@
%files
%defattr(-,root,root)
%{_libdir}/YaST2/plugin/libpy2Pkg.so.*
-%{_libdir}/YaST2/plugin/libpy2Pkg.so
+%{_libdir}/YaST2/plugin/libpy2Pkgzypp.so
+%{_libdir}/YaST2/plugin/libpy2Pkgzypp.so.*
%doc %{prefix}/share/doc/packages/yast2-pkg-bindings
++++++ yast2-pkg-bindings-2.18.7.tar.bz2 -> yast2-pkg-bindings-2.18.9.tar.bz2 ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/yast2-pkg-bindings-2.18.7/VERSION new/yast2-pkg-bindings-2.18.9/VERSION
--- old/yast2-pkg-bindings-2.18.7/VERSION 2009-06-16 15:56:53.000000000 +0200
+++ new/yast2-pkg-bindings-2.18.9/VERSION 2009-07-10 12:38:25.000000000 +0200
@@ -1 +1 @@
-2.18.7
+2.18.9
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/yast2-pkg-bindings-2.18.7/configure new/yast2-pkg-bindings-2.18.9/configure
--- old/yast2-pkg-bindings-2.18.7/configure 2009-06-16 15:58:23.000000000 +0200
+++ new/yast2-pkg-bindings-2.18.9/configure 2009-07-10 13:31:17.000000000 +0200
@@ -1,6 +1,6 @@
#! /bin/sh
# Guess values for system-dependent variables and create Makefiles.
-# Generated by GNU Autoconf 2.63 for yast2-pkg-bindings 2.18.7.
+# Generated by GNU Autoconf 2.63 for yast2-pkg-bindings 2.18.9.
#
# Report bugs to http://bugs.opensuse.org/.
#
@@ -745,8 +745,8 @@
# Identity of this package.
PACKAGE_NAME='yast2-pkg-bindings'
PACKAGE_TARNAME='yast2-pkg-bindings'
-PACKAGE_VERSION='2.18.7'
-PACKAGE_STRING='yast2-pkg-bindings 2.18.7'
+PACKAGE_VERSION='2.18.9'
+PACKAGE_STRING='yast2-pkg-bindings 2.18.9'
PACKAGE_BUGREPORT='http://bugs.opensuse.org/'
ac_unique_file="RPMNAME"
@@ -1536,7 +1536,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.18.7 to adapt to many kinds of systems.
+\`configure' configures yast2-pkg-bindings 2.18.9 to adapt to many kinds of systems.
Usage: $0 [OPTION]... [VAR=VALUE]...
@@ -1608,7 +1608,7 @@
if test -n "$ac_init_help"; then
case $ac_init_help in
- short | recursive ) echo "Configuration of yast2-pkg-bindings 2.18.7:";;
+ short | recursive ) echo "Configuration of yast2-pkg-bindings 2.18.9:";;
esac
cat <<\_ACEOF
@@ -1720,7 +1720,7 @@
test -n "$ac_init_help" && exit $ac_status
if $ac_init_version; then
cat <<\_ACEOF
-yast2-pkg-bindings configure 2.18.7
+yast2-pkg-bindings configure 2.18.9
generated by GNU Autoconf 2.63
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
@@ -1734,7 +1734,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.18.7, which was
+It was created by yast2-pkg-bindings $as_me 2.18.9, which was
generated by GNU Autoconf 2.63. Invocation command line was
$ $0 $@
@@ -2581,7 +2581,7 @@
# Define the identity of the package.
PACKAGE='yast2-pkg-bindings'
- VERSION='2.18.7'
+ VERSION='2.18.9'
cat >>confdefs.h <<_ACEOF
@@ -2805,7 +2805,7 @@
-VERSION="2.18.7"
+VERSION="2.18.9"
RPMNAME="yast2-pkg-bindings"
MAINTAINER="Ladislav Slezák "
@@ -17213,7 +17213,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.18.7, which was
+This file was extended by yast2-pkg-bindings $as_me 2.18.9, which was
generated by GNU Autoconf 2.63. Invocation command line was
CONFIG_FILES = $CONFIG_FILES
@@ -17276,7 +17276,7 @@
_ACEOF
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
ac_cs_version="\\
-yast2-pkg-bindings config.status 2.18.7
+yast2-pkg-bindings config.status 2.18.9
configured by $0, generated by GNU Autoconf 2.63,
with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/yast2-pkg-bindings-2.18.7/configure.in new/yast2-pkg-bindings-2.18.9/configure.in
--- old/yast2-pkg-bindings-2.18.7/configure.in 2009-06-16 15:58:07.000000000 +0200
+++ new/yast2-pkg-bindings-2.18.9/configure.in 2009-07-10 13:31:02.000000000 +0200
@@ -1,9 +1,9 @@
dnl configure.in for yast2-pkg-bindings
dnl
-dnl -- This file is generated by y2autoconf 2.18.6 - DO NOT EDIT! --
+dnl -- This file is generated by y2autoconf 2.18.9 - DO NOT EDIT! --
dnl (edit configure.in.in instead)
-AC_INIT(yast2-pkg-bindings, 2.18.7, http://bugs.opensuse.org/, yast2-pkg-bindings)
+AC_INIT(yast2-pkg-bindings, 2.18.9, 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.18.7"
+VERSION="2.18.9"
RPMNAME="yast2-pkg-bindings"
MAINTAINER="Ladislav Slezák "
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/yast2-pkg-bindings-2.18.7/src/Package.cc new/yast2-pkg-bindings-2.18.9/src/Package.cc
--- old/yast2-pkg-bindings-2.18.7/src/Package.cc 2009-06-03 15:29:58.000000000 +0200
+++ new/yast2-pkg-bindings-2.18.9/src/Package.cc 2009-07-10 12:38:02.000000000 +0200
@@ -39,7 +39,6 @@
#include
#include
-#include
#include
#include
#include
@@ -1503,58 +1502,14 @@
* @builtin PkgUpdateAll
* @param map update_options Options for the solver. All parameters are optional,
* if a parameter is missing the default value from the package manager (libzypp) is used.
- * Currently supported options: <tt>$["silent_downgrades":boolean] </tt>
+ * Currently supported options: <tt>NONE</tt>
*
* @short Update installed packages
* @description
- * Mark all packages for installation which are installed and have
- * an available candidate for update.
+ * Perform a distribution upgrade. This function solves
+ * dependencies.
*
- * This will mark packages for installation *and* for deletion (if a
- * package provides/obsoletes another package)
- *
- * This function does not solve dependencies.
- *
- * Symbols and integer values returned:
- *
- * <b>ProblemListSze</b>: Number of taboo and dropped packages found.
- *
- * <b>DeleteUnmaintained</b>: Whether delete_unmaintained arg was true or false.
- * Dependent on this, <b>SumDropped</b> below either denotes packages to delete
- * (if true) or packages to keep (if false).
- *
- * <b>SumProcessed</b>: TOTAL number of installed packages we processed.
- *
- * <b>SumToInstall</b>: TOTAL number of packages now tagged as to install.
- * Summs <b>Ipreselected</b>, <b>Iupdate</b>, <b>Idowngrade</b>, <b>Ireplaced</b>.
- *
- * <b>Ipreselected</b>: Packages which were already taged to install.
- *
- * <b>Iupdate</b>: Packages set to install as update to a newer version.
- *
- * <b>Idowngrade</b>: Packages set to install performing a version downgrade.
- *
- * <b>Ireplaced</b>: Packages set to install as they replace an installed package.
- *
- * <b>SumToDelete</b>: TOTAL number of packages now tagged as to delete.
- * Summs <b>Dpreselected</b>, <b>SumDropped</b> if <b>DeleteUnmaintained</b>
- * was set.
- *
- * <b>Dpreselected</b>: Packages which were already taged to delete.
- *
- * <b>SumToKeep</b>: TOTAL number of packages which remain unchanged.
- * Summs <b>Ktaboo</b>, <b>Knewer</b>, <b>Ksame</b>, <b>SumDropped</b>
- * if <b>DeleteUnmaintained</b> was not set.
- *
- * <b>Ktaboo</b>: Packages which are set taboo.
- *
- * <b>Knewer</b>: Packages kept because only older versions are available.
- *
- * <b>Ksame</b>: Packages kept because they are up to date.
- *
- * <b>SumDropped</b>: TOTAL number of dropped packages found. Dependent
- * on the delete_unmaintained arg, they are either tagged as to delete or
- * remain unchanged.
+ * Symbols and integer values returned: <tt>NONE</tt>
*
* @return map summary of the update
*/
@@ -1562,7 +1517,13 @@
YCPValue
PkgFunctions::PkgUpdateAll (const YCPMap& options)
{
- zypp::UpgradeStatistics stats;
+ // NOTE(ma): Since libzypp switched to use libsatsolver for distribution upgrade,
+ // there are no more in-/output arguments to doUpgrade. The statistics previously
+ // returned from resolver()->doUpgrade(stats) via the UpgradeStatistics argument
+ // no longer exist. If some feedback is required here, libzypp could offer sort of
+ // transaction summary. Such a summary woulfd not be tied to the distribution upgrade,
+ // but would be available all the time and reflect the status of the zypp pool.
+
YCPValue delete_unmaintained = options->value(YCPString("delete_unmaintained"));
if(!delete_unmaintained.isNull())
@@ -1573,15 +1534,7 @@
YCPValue silent_downgrades = options->value(YCPString("silent_downgrades"));
if(!silent_downgrades.isNull())
{
- if (silent_downgrades->isBoolean())
- {
- stats.silent_downgrades = silent_downgrades->asBoolean()->value();
- }
- else
- {
- y2error("unexpected type of 'silent_downgrades' key: %s, must be a boolean!",
- Type::vt2type(silent_downgrades->valuetype())->toString().c_str());
- }
+ y2error("'silent_downgrades' flag is obsoleted and should not be used, check the code!");
}
YCPValue keep_installed_patches = options->value(YCPString("keep_installed_patches"));
@@ -1596,40 +1549,10 @@
try
{
// solve upgrade, get statistics
- zypp_ptr()->resolver()->doUpgrade(stats);
+ zypp_ptr()->resolver()->doUpgrade();
}
catch (...)
- {
- return data;
- }
-
- data->add( YCPSymbol("ProblemListSze"), YCPInteger(stats.chk_is_taboo + stats.chk_dropped));
-
- // packages to install; sum and details
- data->add( YCPSymbol("SumToInstall"), YCPInteger( stats.totalToInstall() ) );
- data->add( YCPSymbol("Ipreselected"), YCPInteger( stats.chk_already_toins ) );
- data->add( YCPSymbol("Iupdate"), YCPInteger( stats.chk_to_update ) );
- data->add( YCPSymbol("Idowngrade"), YCPInteger( stats.chk_to_downgrade ) );
- data->add( YCPSymbol("Ireplaced"), YCPInteger( stats.chk_replaced
- + stats.chk_replaced_guessed
- + stats.chk_add_split ) );
- // packages to delete; sum and details (! see dropped packages)
- data->add( YCPSymbol("SumToDelete"), YCPInteger( stats.totalToDelete() ) );
- data->add( YCPSymbol("Dpreselected"), YCPInteger( stats.chk_already_todel ) );
-
- // packages to delete; sum and details (! see dropped packages)
- data->add( YCPSymbol("SumToKeep"), YCPInteger( stats.totalToKeep() ) );
- data->add( YCPSymbol("Ktaboo"), YCPInteger( stats.chk_is_taboo ) );
- data->add( YCPSymbol("Knewer"), YCPInteger( stats.chk_to_keep_downgrade ) );
- data->add( YCPSymbol("Ksame"), YCPInteger( stats.chk_to_keep_installed ) );
-
- // dropped packages; dependent on the delete_unmaintained
- // option set for doUpdate, dropped packages count as ToDelete
- // or ToKeep.
- data->add( YCPSymbol("SumDropped"), YCPInteger( stats.chk_dropped ) );
-
- // Total mumber of installed packages processed
- data->add( YCPSymbol("SumProcessed"), YCPInteger( stats.chk_installed_total ) );
+ {}
return data;
}
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/yast2-pkg-bindings-2.18.7/src/PkgFunctions.h new/yast2-pkg-bindings-2.18.9/src/PkgFunctions.h
--- old/yast2-pkg-bindings-2.18.7/src/PkgFunctions.h 2009-04-29 12:58:11.000000000 +0200
+++ new/yast2-pkg-bindings-2.18.9/src/PkgFunctions.h 2009-07-10 13:30:51.000000000 +0200
@@ -19,7 +19,7 @@
*/
/*
- File: $Id: PkgFunctions.h 57028 2009-04-29 10:58:09Z lslezak $
+ File: $Id: PkgFunctions.h 58008 2009-07-10 11:30:50Z lslezak $
Author: Ladislav Slezák
Summary: Handles Pkg::function (list_of_arguments) calls
Namespace: Pkg
@@ -144,7 +144,8 @@
YCPValue PkgMediaSizesOrCount (bool sizes, bool download_size = false);
YCPValue TargetInitInternal(const YCPString& root, bool rebuild_rpmdb);
- bool aliasExists(const std::string &alias) const;
+ bool aliasExists(const std::string &alias, const std::listzypp::RepoInfo &reps) const;
+
zypp::Product::constPtr FindBaseProduct(const std::string &alias) const;
zypp::RepoManager CreateRepoManager();
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/yast2-pkg-bindings-2.18.7/src/Source_Create.cc new/yast2-pkg-bindings-2.18.9/src/Source_Create.cc
--- old/yast2-pkg-bindings-2.18.7/src/Source_Create.cc 2009-04-08 08:54:47.000000000 +0200
+++ new/yast2-pkg-bindings-2.18.9/src/Source_Create.cc 2009-07-10 13:30:51.000000000 +0200
@@ -19,7 +19,7 @@
*/
/*
- File: $Id: Source_Create.cc 56469 2009-03-30 14:53:43Z lslezak $
+ File: $Id: Source_Create.cc 58008 2009-07-10 11:30:50Z lslezak $
Author: Ladislav Slezák
Summary: Functions related to repository registration
Namespace: Pkg
@@ -300,13 +300,16 @@
RefreshWithCallbacks(repo, subprogrcv_ref);
progress.NextStage();
- // build cache if needed
- if (!repomanager.isCached(repo))
+ // remove the cache
+ if (repomanager.isCached(repo))
{
- y2milestone("Caching source '%s'...", repo.alias().c_str());
-
- repomanager.buildCache(repo, zypp::RepoManager::BuildIfNeeded, subprogrcv_build);
+ y2milestone("Removing cache for repository '%s'...", repo.alias().c_str());
+ repomanager.cleanCache(repo);
}
+
+ y2milestone("Caching repository '%s'...", repo.alias().c_str());
+ repomanager.buildCache(repo, zypp::RepoManager::BuildIfNeeded, subprogrcv_build);
+
progress.NextStage();
prg.toMax();
@@ -430,7 +433,10 @@
}
else
{
- if (aliasExists(alias))
+ // search in stored repositories
+ std::listzypp::RepoInfo reps = CreateRepoManager().knownRepositories();
+
+ if (aliasExists(alias, reps))
{
y2error("alias %s already exists", alias.c_str());
return YCPVoid();
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/yast2-pkg-bindings-2.18.7/src/Source_Misc.cc new/yast2-pkg-bindings-2.18.9/src/Source_Misc.cc
--- old/yast2-pkg-bindings-2.18.7/src/Source_Misc.cc 2008-01-03 16:05:59.000000000 +0100
+++ new/yast2-pkg-bindings-2.18.9/src/Source_Misc.cc 2009-07-10 13:30:51.000000000 +0200
@@ -19,7 +19,7 @@
*/
/*
- File: $Id: Source_Misc.cc 43261 2008-01-03 15:05:57Z lslezak $
+ File: $Id: Source_Misc.cc 58008 2009-07-10 11:30:50Z lslezak $
Author: Ladislav Slezák
Summary: Generic functions for accessing repositories from Yast
Namespace: Pkg
@@ -87,11 +87,20 @@
return -1LL;
}
-bool PkgFunctions::aliasExists(const std::string &alias) const
+bool PkgFunctions::aliasExists(const std::string &alias, const std::listzypp::RepoInfo &reps) const
{
+ // search in loaded repositories
for(RepoCont::const_iterator it = repos.begin(); it != repos.end() ; ++it)
{
- if (!(*it)->isDeleted() && (*it)->repoInfo().alias() == alias)
+ if ((*it)->repoInfo().alias() == alias)
+ return true;
+ }
+
+ // search in stored repositories
+ for (std::listzypp::RepoInfo::const_iterator it = reps.begin();
+ it != reps.end(); ++it)
+ {
+ if (it->alias() == alias)
return true;
}
@@ -142,7 +151,11 @@
std::string ret = alias;
unsigned int id = 0;
- while(aliasExists(ret))
+
+ // search in stored repositories
+ std::listzypp::RepoInfo reps = CreateRepoManager().knownRepositories();
+
+ while(aliasExists(ret, reps))
{
y2milestone("Alias %s already found: %zd", ret.c_str(), logFindAlias(ret));
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Remember to have fun...
--
To unsubscribe, e-mail: opensuse-commit+unsubscribe@opensuse.org
For additional commands, e-mail: opensuse-commit+help@opensuse.org