Author: jkupec
Date: Thu Jul 24 15:18:43 2008
New Revision: 10661
URL: http://svn.opensuse.org/viewcvs/zypp?rev=10661&view=rev
Log:
- cosmetics
Modified:
trunk/libzypp/zypp/RepoInfo.h
trunk/libzypp/zypp/Service.cc
trunk/libzypp/zypp/Service.h
Modified: trunk/libzypp/zypp/RepoInfo.h
URL: http://svn.opensuse.org/viewcvs/zypp/trunk/libzypp/zypp/RepoInfo.h?rev=10661&r1=10660&r2=10661&view=diff
==============================================================================
--- trunk/libzypp/zypp/RepoInfo.h (original)
+++ trunk/libzypp/zypp/RepoInfo.h Thu Jul 24 15:18:43 2008
@@ -239,8 +239,8 @@
bool keepPackages() const;
/**
- * Gets service name which add it or empty string if this repository
- * is added manually.
+ * Gets name of the service to which this repository belongs or empty string
+ * if it has been added manually.
*/
std::string service() const;
Modified: trunk/libzypp/zypp/Service.cc
URL: http://svn.opensuse.org/viewcvs/zypp/trunk/libzypp/zypp/Service.cc?rev=10661&r1=10660&r2=10661&view=diff
==============================================================================
--- trunk/libzypp/zypp/Service.cc (original)
+++ trunk/libzypp/zypp/Service.cc Thu Jul 24 15:18:43 2008
@@ -1,3 +1,14 @@
+/*---------------------------------------------------------------------\
+| ____ _ __ __ ___ |
+| |__ / \ / / . \ . \ |
+| / / \ V /| _/ _/ |
+| / /__ | | | | | | |
+| /_____||_| |_| |_| |
+| |
+\---------------------------------------------------------------------*/
+/** \file zypp/Service.cc
+ *
+ */
#include "zypp/Service.h"
#include <ostream>
@@ -9,12 +20,15 @@
#include "zypp/parser/RepoindexFileReader.h"
using namespace std;
+
///////////////////////////////////////////////////////////////////////////////
namespace zypp
{//////////////////////////////////////////////////////////////////////////////
- struct RepoInfoCollector {
- std::vector<RepoInfo> repos;
+
+ struct RepoInfoCollector
+ {
+ vector<RepoInfo> repos;
bool collect(const RepoInfo& info)
{
repos.push_back(info);
@@ -22,31 +36,36 @@
}
};
- class Service::Impl{
- public:
- string name;
- Url url;
- DefaultIntegral