summaryrefslogtreecommitdiff
path: root/cmdline/apt.cc
diff options
context:
space:
mode:
Diffstat (limited to 'cmdline/apt.cc')
-rw-r--r--cmdline/apt.cc15
1 files changed, 12 insertions, 3 deletions
diff --git a/cmdline/apt.cc b/cmdline/apt.cc
index d2eb7a5a3..170478174 100644
--- a/cmdline/apt.cc
+++ b/cmdline/apt.cc
@@ -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>
@@ -54,8 +55,12 @@
#include <apt-private/private-upgrade.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>
/*}}}*/
+
+
bool ShowHelp(CommandLine &CmdL)
{
ioprintf(c1out,_("%s %s for %s compiled on %s %s\n"),PACKAGE,PACKAGE_VERSION,
@@ -71,11 +76,13 @@ bool ShowHelp(CommandLine &CmdL)
" search - search in package descriptions\n"
" show - show package details\n"
"\n"
- " update - update list of available packages\n"
- " upgrade - upgrade the systems packages\n"
- "\n"
" install - install packages\n"
" remove - remove packages\n"
+ "\n"
+ " edit-sources - edit the source information file\n"
+ "\n"
+ " update - update list of available packages\n"
+ " upgrade - upgrade the systems packages\n"
);
return true;
@@ -91,6 +98,8 @@ int main(int argc, const char *argv[]) /*{{{*/
{"remove", &DoInstall},
{"update",&DoUpdate},
{"upgrade",&DoUpgradeWithAllowNewPackages},
+ // misc
+ {"edit-sources",&EditSources},
// helper
{"moo",&DoMoo},
{"help",&ShowHelp},