Apply apt-0.5.15cnc6-alt-quiet-update.patch

Added in commit a4e32c8:
0.5.15cnc6-alt16

- apt-shell: -q option for update added
This commit is contained in:
Gleb Fotengauer-Malinovskiy 2014-05-16 21:04:22 +04:00
parent 6ad87320c1
commit afc2d58e1c
2 changed files with 7 additions and 23 deletions

View File

@ -1,23 +0,0 @@
--- apt-0.5.15cnc6/cmdline/apt-shell.cc..quiet 2005-07-15 19:37:52 +0300
+++ apt-0.5.15cnc6/cmdline/apt-shell.cc 2005-07-15 20:10:11 +0300
@@ -4356,6 +4356,10 @@
{'o',"option",0,CommandLine::ArbItem},
{0,0,0,0}};
+ static CommandLine::Args UpdateArgs[] = {
+ {'q',"quiet","quiet",CommandLine::IntLevel},
+ {0,0,0,0}};
+
static CommandLine::Args NoArgs[] = {
{'h',"help","help",0},
{'v',"version","version",0},
@@ -4389,6 +4393,9 @@
case 655: // ls
return ListArgs;
+ case 451231: // update
+ return UpdateArgs;
+
default:
return NoArgs;
}

View File

@ -4376,6 +4376,10 @@ CommandLine::Args *CommandArgs(const char *Name)
{'o',"option",0,CommandLine::ArbItem},
{0,0,0,0}};
static CommandLine::Args UpdateArgs[] = {
{'q',"quiet","quiet",CommandLine::IntLevel},
{0,0,0,0}};
static CommandLine::Args NoArgs[] = {
{'h',"help","help",0},
{'v',"version","version",0},
@ -4409,6 +4413,9 @@ CommandLine::Args *CommandArgs(const char *Name)
case 655: // ls
return ListArgs;
case 451231: // update
return UpdateArgs;
default:
return NoArgs;
}