[zypp-commit] r7738 - in /trunk/zypper/src: zypp-checkpatches.cc zypper-updates.cc zypper-updates.h zypper.h
Author: jkupec
Date: Sun Nov 4 11:05:27 2007
New Revision: 7738
URL: http://svn.opensuse.org/viewcvs/zypp?rev=7738&view=rev
Log:
- decoupling zypper and zypp-checkpatches code
Modified:
trunk/zypper/src/zypp-checkpatches.cc
trunk/zypper/src/zypper-updates.cc
trunk/zypper/src/zypper-updates.h
trunk/zypper/src/zypper.h
Modified: trunk/zypper/src/zypp-checkpatches.cc
URL: http://svn.opensuse.org/viewcvs/zypp/trunk/zypper/src/zypp-checkpatches.cc?rev=7738&r1=7737&r2=7738&view=diff
==============================================================================
--- trunk/zypper/src/zypp-checkpatches.cc (original)
+++ trunk/zypper/src/zypp-checkpatches.cc Sun Nov 4 11:05:27 2007
@@ -37,6 +37,7 @@
ZYpp::Ptr God;
RuntimeData gData;
Settings gSettings;
+std::list<Error> errors;
ostream no_stream(NULL);
@@ -89,7 +90,7 @@
int exit_with_error( const std::string &error_str )
{
- gData.errors.push_back(Error(error_str));
+ errors.push_back(Error(error_str));
std::ofstream os(RESULT_FILE);
if ( os.good() )
@@ -181,7 +182,7 @@
{
// TranslatorExplanation %s = detailed low level (unstranslated) error message
string error = excpt_r.msg();
- gData.errors.push_back(str::form(_("Couldn't restore repository.\nDetail: %s"), error.c_str()));
+ errors.push_back(str::form(_("Couldn't restore repository.\nDetail: %s"), error.c_str()));
}
}
@@ -231,7 +232,7 @@
if ( gData.repos.size() == 0 )
{
- gData.errors.push_back( str::form( _( "There are no update repositories defined. Please add one or more update repositories in order to be notified of updates.") ) );
+ errors.push_back( str::form( _( "There are no update repositories defined. Please add one or more update repositories in order to be notified of updates.") ) );
}
God->addResolvables( God->target()->resolvables(), true);
Modified: trunk/zypper/src/zypper-updates.cc
URL: http://svn.opensuse.org/viewcvs/zypp/trunk/zypper/src/zypper-updates.cc?rev=7738&r1=7737&r2=7738&view=diff
==============================================================================
--- trunk/zypper/src/zypper-updates.cc (original)
+++ trunk/zypper/src/zypper-updates.cc Sun Nov 4 11:05:27 2007
@@ -25,6 +25,7 @@
extern ZYpp::Ptr God;
extern RuntimeData gData;
extern Settings gSettings;
+extern std::list<Error> errors;
Edition read_old_version()
{
@@ -59,7 +60,7 @@
out << "<?xml version='1.0'?>" << std::endl;
out << "
participants (1)
-
jkupec@svn.opensuse.org