Просмотр исходного кода

fix Configuration::FindVector API

Git-Dch: Ignore
David Kalnischkies лет назад: 11
Родитель
Сommit
1b5c4c4c1b
3 измененных файлов с 2 добавлено и 12 удалено
  1. 0 5
      apt-pkg/contrib/configuration.cc
  2. 2 6
      apt-pkg/contrib/configuration.h
  3. 0 1
      debian/libapt-pkg4.13.symbols

+ 0 - 5
apt-pkg/contrib/configuration.cc

@@ -253,11 +253,6 @@ string Configuration::FindDir(const char *Name,const char *Default) const
 // Configuration::FindVector - Find a vector of values			/*{{{*/
 // Configuration::FindVector - Find a vector of values			/*{{{*/
 // ---------------------------------------------------------------------
 // ---------------------------------------------------------------------
 /* Returns a vector of config values under the given item */
 /* Returns a vector of config values under the given item */
-#if (APT_PKG_MAJOR >= 4 && APT_PKG_MINOR < 13)
-vector<string> Configuration::FindVector(const char *Name) const { 
-   return FindVector(Name, ""); 
-}
-#endif
 vector<string> Configuration::FindVector(const char *Name, std::string const &Default) const
 vector<string> Configuration::FindVector(const char *Name, std::string const &Default) const
 {
 {
    vector<string> Vec;
    vector<string> Vec;

+ 2 - 6
apt-pkg/contrib/configuration.h

@@ -82,12 +82,8 @@ class Configuration
     *
     *
     * \param Name of the parent node
     * \param Name of the parent node
     * \param Default list of values separated by commas */
     * \param Default list of values separated by commas */
-   std::vector<std::string> FindVector(const char *Name, std::string const &Default) const;
-   std::vector<std::string> FindVector(std::string const &Name, std::string const &Default) const { return FindVector(Name.c_str(), Default); };
-#if (APT_PKG_MAJOR >= 4 && APT_PKG_MINOR < 13)
-   std::vector<std::string> FindVector(const char *Name) const;
-#endif
-   std::vector<std::string> FindVector(std::string const &Name="") const { return FindVector(Name.c_str(), ""); };
+   std::vector<std::string> FindVector(const char *Name, std::string const &Default = "") const;
+   std::vector<std::string> FindVector(std::string const &Name, std::string const &Default = "") const { return FindVector(Name.c_str(), Default); };
    int FindI(const char *Name,int const &Default = 0) const;
    int FindI(const char *Name,int const &Default = 0) const;
    int FindI(std::string const &Name,int const &Default = 0) const {return FindI(Name.c_str(),Default);};
    int FindI(std::string const &Name,int const &Default = 0) const {return FindI(Name.c_str(),Default);};
    bool FindB(const char *Name,bool const &Default = false) const;
    bool FindB(const char *Name,bool const &Default = false) const;

+ 0 - 1
debian/libapt-pkg4.13.symbols

@@ -689,7 +689,6 @@ libapt-pkg.so.4.13 libapt-pkg4.13 #MINVER#
  (c++)"pkgIndexFile::Type::CreatePkgParser(pkgCache::PkgFileIterator) const@Base" 0.8.0
  (c++)"pkgIndexFile::Type::CreatePkgParser(pkgCache::PkgFileIterator) const@Base" 0.8.0
  (c++)"pkgIndexFile::Merge(pkgCacheGenerator&, OpProgress*) const@Base" 0.8.0
  (c++)"pkgIndexFile::Merge(pkgCacheGenerator&, OpProgress*) const@Base" 0.8.0
  (c++)"pkgIndexFile::Merge(pkgCacheGenerator&, OpProgress&) const@Base" 0.8.0
  (c++)"pkgIndexFile::Merge(pkgCacheGenerator&, OpProgress&) const@Base" 0.8.0
- (c++)"Configuration::FindVector(char const*) const@Base" 0.8.0
  (c++)"Configuration::MatchAgainstConfig::Match(char const*) const@Base" 0.8.0
  (c++)"Configuration::MatchAgainstConfig::Match(char const*) const@Base" 0.8.0
  (c++)"Configuration::Find(char const*, char const*) const@Base" 0.8.0
  (c++)"Configuration::Find(char const*, char const*) const@Base" 0.8.0
  (c++)"Configuration::Item::FullTag(Configuration::Item const*) const@Base" 0.8.0
  (c++)"Configuration::Item::FullTag(Configuration::Item const*) const@Base" 0.8.0