FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > ArchLinux > ArchLinux Pacman Development

 
 
LinkBack Thread Tools
 
Old 03-24-2011, 10:17 PM
Ray Kohler
 
Default Add -T, --deptest to usage message

Fixes FS #23369

Signed-off-by: Ray Kohler <ataraxia937@gmail.com>
---
src/pacman/pacman.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/src/pacman/pacman.c b/src/pacman/pacman.c
index 0487ee8..d10cefe 100644
--- a/src/pacman/pacman.c
+++ b/src/pacman/pacman.c
@@ -123,6 +123,7 @@ static void usage(int op, const char * const myname)
printf(" %s {-Q --query} [%s] [%s]
", myname, str_opt, str_pkg);
printf(" %s {-R --remove} [%s] <%s>
", myname, str_opt, str_pkg);
printf(" %s {-S --sync} [%s] [%s]
", myname, str_opt, str_pkg);
+ printf(" %s {-T --deptest} [%s] [%s]
", myname, str_opt, str_pkg);
printf(" %s {-U --upgrade} [%s] <%s>
", myname, str_opt, str_file);
printf(_("
use '%s {-h --help}' with an operation for available options
"),
myname);
--
1.7.4.1
 
Old 03-25-2011, 12:30 AM
Dan McGee
 
Default Add -T, --deptest to usage message

On Thu, Mar 24, 2011 at 6:17 PM, Ray Kohler <ataraxia937@gmail.com> wrote:
> Fixes FS #23369

But only partially, or at least when one takes a closer look. See below:

dmcgee@galway ~/projects/pacman-maint (maint)
$ pacman -T --help
-b, --dbpath <path> set an alternate database location
-r, --root <path> set an alternate installation root
...

dmcgee@galway ~/projects/pacman-maint (maint)
$ pacman -S --help
usage: pacman {-S --sync} [options] [package(s)]
options:
-b, --dbpath <path> set an alternate database location
...

Note how the second has a usage line; we should add that for -T as well.

>
> Signed-off-by: Ray Kohler <ataraxia937@gmail.com>
> ---
> *src/pacman/pacman.c | * *1 +
> *1 files changed, 1 insertions(+), 0 deletions(-)
>
> diff --git a/src/pacman/pacman.c b/src/pacman/pacman.c
> index 0487ee8..d10cefe 100644
> --- a/src/pacman/pacman.c
> +++ b/src/pacman/pacman.c
> @@ -123,6 +123,7 @@ static void usage(int op, const char * const myname)
> * * * * * * * *printf(" * *%s {-Q --query} * *[%s] [%s]
", myname, str_opt, str_pkg);
> * * * * * * * *printf(" * *%s {-R --remove} * [%s] <%s>
", myname, str_opt, str_pkg);
> * * * * * * * *printf(" * *%s {-S --sync} * * [%s] [%s]
", myname, str_opt, str_pkg);
> + * * * * * * * printf(" * *%s {-T --deptest} *[%s] [%s]
", myname, str_opt, str_pkg);
> * * * * * * * *printf(" * *%s {-U --upgrade} *[%s] <%s>
", myname, str_opt, str_file);
> * * * * * * * *printf(_("
use '%s {-h --help}' with an operation for available options
"),
> * * * * * * * * * * * * * * * *myname);
> --
> 1.7.4.1
>
>
>
 
Old 03-25-2011, 01:00 AM
Ray Kohler
 
Default Add -T, --deptest to usage message

Fixes FS #23369

Signed-off-by: Ray Kohler <ataraxia937@gmail.com>
---
src/pacman/pacman.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/src/pacman/pacman.c b/src/pacman/pacman.c
index 0487ee8..da6b71e 100644
--- a/src/pacman/pacman.c
+++ b/src/pacman/pacman.c
@@ -123,6 +123,7 @@ static void usage(int op, const char * const myname)
printf(" %s {-Q --query} [%s] [%s]
", myname, str_opt, str_pkg);
printf(" %s {-R --remove} [%s] <%s>
", myname, str_opt, str_pkg);
printf(" %s {-S --sync} [%s] [%s]
", myname, str_opt, str_pkg);
+ printf(" %s {-T --deptest} [%s] [%s]
", myname, str_opt, str_pkg);
printf(" %s {-U --upgrade} [%s] <%s>
", myname, str_opt, str_file);
printf(_("
use '%s {-h --help}' with an operation for available options
"),
myname);
@@ -173,6 +174,9 @@ static void usage(int op, const char * const myname)
printf("%s:
", str_opt);
addlist(_(" --asdeps mark packages as non-explicitly installed
"));
addlist(_(" --asexplicit mark packages as explicitly installed
"));
+ } else if(op == PM_OP_DEPTEST) {
+ printf("%s: %s {-T --deptest} [%s] [%s]
", str_usg, myname, str_opt, str_pkg);
+ printf("%s:
", str_opt);
}
switch(op) {
case PM_OP_SYNC:
--
1.7.4.1
 

Thread Tools




All times are GMT. The time now is 08:58 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org