]> git.saurik.com Git - apt.git/blobdiff - cmdline/apt.cc
webserver: use pthreads to handle multiple clients
[apt.git] / cmdline / apt.cc
index ef31d002934f162b65a30e47fe7c5c2eb2362028..4bcae0aba8ac71a07f9bc30d4e2679e899d83af7 100644 (file)
@@ -41,6 +41,7 @@
 #include <apt-pkg/pkgsystem.h>
 #include <apt-pkg/indexfile.h>
 #include <apt-pkg/metaindex.h>
+#include <apt-pkg/hashes.h>
 
 #include <apti18n.h>
 
 #include <apt-private/private-show.h>
 #include <apt-private/private-main.h>
 #include <apt-private/private-utils.h>
+#include <apt-private/private-sources.h>
                                                                        /*}}}*/
 
-// EditSource - EditSourcesList                                        /*{{{*/
-// ---------------------------------------------------------------------
-bool EditSources(CommandLine &CmdL)
-{
-   // FIXME: suport CmdL.FileList to specify sources.list.d files
-
-   std::string sourceslist = _config->FindFile("Dir::Etc::sourcelist");
-
-   // FIXME: take hash before, 
-   //        when changed display message to apt update
-   //        do syntax check after save (like visudo)
-
-   EditFileInSensibleEditor(sourceslist);
-
-   return true;
-}
-                                                                       /*}}}*/
 
 
 bool ShowHelp(CommandLine &CmdL)