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

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

Michael Vogt лет назад: 12
Родитель
Сommit
94f6611592
2 измененных файлов с 2 добавлено и 2 удалено
  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();
 
    // Add custom metaIndex (e.g. local files)
-   void Add(metaIndex *mi) {
+   void AddMetaIndex(metaIndex *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))
             {
                pkgSourceList *sources = Cache.GetSourceList();
-               sources->Add(List[0]);
+               sources->AddMetaIndex(List[0]);
             }
          }
       }