]> git.saurik.com Git - apt.git/commitdiff
rename pkgSourceList::Add() to pkgSourceList::AddMetaIndex()
authorMichael Vogt <mvo@ubuntu.com>
Wed, 7 May 2014 14:23:37 +0000 (16:23 +0200)
committerMichael Vogt <mvo@ubuntu.com>
Wed, 7 May 2014 14:23:37 +0000 (16:23 +0200)
apt-pkg/sourcelist.h
apt-private/private-install.cc

index 4943dd32acb93f50ca075f3de6fd184b745a22b9..cdf8d9762b03f18a3ea1c421a428e0309a2cb61a 100644 (file)
@@ -117,7 +117,7 @@ class pkgSourceList
    time_t GetLastModifiedTime();
 
    // Add custom metaIndex (e.g. local files)
    time_t GetLastModifiedTime();
 
    // Add custom metaIndex (e.g. local files)
-   void Add(metaIndex *mi) {
+   void AddMetaIndex(metaIndex *mi) {
       SrcList.push_back(mi);
    }
 
       SrcList.push_back(mi);
    }
 
index 4a68bb9d167940e764bd21647659968432e3309b..e7606a1d1be22c68587e71cdf1444be63d901b84 100644 (file)
@@ -686,7 +686,7 @@ bool DoInstall(CommandLine &CmdL)
             if(Type->CreateItem(List, *I, "", "", Options))
             {
                pkgSourceList *sources = Cache.GetSourceList();
             if(Type->CreateItem(List, *I, "", "", Options))
             {
                pkgSourceList *sources = Cache.GetSourceList();
-               sources->Add(List[0]);
+               sources->AddMetaIndex(List[0]);
             }
          }
       }
             }
          }
       }