Explorar el Código

rename pkgSourceList::Add() to pkgSourceList::AddMetaIndex()

Michael Vogt hace 12 años
padre
commit
94f6611592
Se han modificado 2 ficheros con 2 adiciones y 2 borrados
  1. 1 1
      apt-pkg/sourcelist.h
  2. 1 1
      apt-private/private-install.cc

+ 1 - 1
apt-pkg/sourcelist.h

@@ -117,7 +117,7 @@ class pkgSourceList
    time_t GetLastModifiedTime();
    time_t GetLastModifiedTime();
 
 
    // Add custom metaIndex (e.g. local files)
    // Add custom metaIndex (e.g. local files)
-   void Add(metaIndex *mi) {
+   void AddMetaIndex(metaIndex *mi) {
       SrcList.push_back(mi);
       SrcList.push_back(mi);
    }
    }
 
 

+ 1 - 1
apt-private/private-install.cc

@@ -686,7 +686,7 @@ bool DoInstall(CommandLine &CmdL)
             if(Type->CreateItem(List, *I, "", "", Options))
             if(Type->CreateItem(List, *I, "", "", Options))
             {
             {
                pkgSourceList *sources = Cache.GetSourceList();
                pkgSourceList *sources = Cache.GetSourceList();
-               sources->Add(List[0]);
+               sources->AddMetaIndex(List[0]);
             }
             }
          }
          }
       }
       }