use pkgSrcRecords::Step() instead of Next()
authorMichael Vogt <mvo@debian.org>
Tue, 10 Jun 2014 13:07:15 +0000 (15:07 +0200)
committerMichael Vogt <mvo@debian.org>
Tue, 10 Jun 2014 13:07:15 +0000 (15:07 +0200)
apt-pkg/srcrecords.cc
apt-pkg/srcrecords.h
debian/changelog

index f4d034b..81b1c54 100644 (file)
@@ -81,10 +81,10 @@ bool pkgSrcRecords::Restart()
    return true;
 }
                                                                        /*}}}*/
-// SrcRecords::Next - Step to the next Source Record                   /*{{{*/
+// SrcRecords::Step - Step to the next Source Record                   /*{{{*/
 // ---------------------------------------------------------------------
 /* Step to the next source package record */
-const pkgSrcRecords::Parser* pkgSrcRecords::Next()
+const pkgSrcRecords::Parser* pkgSrcRecords::Step()
 {
    if (Current == Files.end())
       return 0;
@@ -111,7 +111,7 @@ pkgSrcRecords::Parser *pkgSrcRecords::Find(const char *Package,bool const &SrcOn
 {
    while (true)
    {
-      if(Next() == 0)
+      if(Step() == 0)
          return 0;
 
       // IO error somehow
index 82460d7..e000e17 100644 (file)
@@ -97,7 +97,7 @@ class pkgSrcRecords
 
    // Step to the next SourcePackage and return pointer to the 
    // next SourceRecord. The pointer is owned by libapt.
-   const Parser* Next();
+   const Parser* Step();
 
    // Locate a package by name and return pointer to the Parser.
    // The pointer is owned by libapt.
index 2c81be4..1357f2c 100644 (file)
@@ -12,7 +12,7 @@ apt (1.0.4) UNRELEASED; urgency=medium
   * Add compat mode for old (32bit FileSize) CacheDB (LP: #1274466)
   * cmdline/apt-helper.cc: use less generic description/short-description 
     in apt-helper download
-  * add pkgSrcRecords::Next() to step through all the pkgSrcRecords
+  * add pkgSrcRecords::Step() to step through all the pkgSrcRecords
     (thanks to Helmut Grohne)
 
   [ David Kalnischkies ]