pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

pkg/37265: pkgtools/pkg_install: outdated pkg_info usageline



>Number:         37265
>Category:       pkg
>Synopsis:       pkgtools/pkg_install: outdated pkg_info usageline
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Nov 02 15:40:00 +0000 2007
>Originator:     Yakovetsky Vladimir
>Release:        NetBSD 4.99.31
>Organization:
>Environment:
System: NetBSD lrou.x.ua 4.99.31 NetBSD 4.99.31 (lrou_odd-1.852) #0: Sun Sep 30 
18:16:16 EEST 2007 yx%lrou.x.ua@localhost:/sys/arch/i386/compile/lrou_odd i386
Architecture: i386
Machine: i386

>Description:
        outdated pkg_info usageline
        (r and E options)

>How-To-Repeat:
% pkg_info -r
pkg_info: unknown option -- r
usage: pkg_info [-BbcDdFfhIikLmNnpqRrSsVvX] [-e package] [-K pkg_dbdir]
                [-l prefix] pkg-name ...
       pkg_info [-a | -u] [flags]
       pkg_info [-Q variable] pkg-name ...

% man pkg_info | col -b | grep -A4 Rr
     pkg_info [-BbcDdFfhIikLmNnpqRrSsVvX] [-e package] [-E package]
              [-K pkg_dbdir] [-l prefix] pkg-name ...
     pkg_info [-a | -u] [flags]
     pkg_info [-Q variable] pkg-name ...

>Fix:
        small cleanups:
--- pkgtools/pkg_install/files/info/main.c.orig
+++ pkgtools/pkg_install/files/info/main.c
@@ -67,8 +67,8 @@
 usage(void)
 {
        fprintf(stderr, "%s\n%s\n%s\n%s\n",
-           "usage: pkg_info [-BbcDdFfhIikLmNnpqRrSsVvX] [-e package] [-K 
pkg_dbdir]",
-           "                [-l prefix] pkg-name ...",
+           "usage: pkg_info [-BbcDdFfhIikLmNnpqRSsVvX] [-e package] [-E 
package]",
+           "                [-K pkg_dbdir] [-l prefix] pkg-name ...",
            "       pkg_info [-a | -u] [flags]",
            "       pkg_info [-Q variable] pkg-name ...");
        exit(1);
--- pkgtools/pkg_install/files/info/pkg_info.1.orig
+++ pkgtools/pkg_install/files/info/pkg_info.1
@@ -25,7 +25,7 @@
 .Nd a utility for displaying information on software packages
 .Sh SYNOPSIS
 .Nm
-.Op Fl BbcDdFfhIikLmNnpqRrSsVvX
+.Op Fl BbcDdFfhIikLmNnpqRSsVvX
 .Op Fl e Ar package
 .Op Fl E Ar package
 .Op Fl K Ar pkg_dbdir
--- pkgtools/pkg_install/files/info/pkg_info.cat1.orig
+++ pkgtools/pkg_install/files/info/pkg_info.cat1
@@ -4,7 +4,7 @@
      ppkkgg__iinnffoo -- a utility for displaying information on 
software packages
 
 SSYYNNOOPPSSIISS
-     ppkkgg__iinnffoo 
[--BBbbccDDddFFffhhIIiikkLLmmNNnnppqqRRrrSSssVVvvXX] 
[--ee _p_a_c_k_a_g_e] [--EE _p_a_c_k_a_g_e]
+     ppkkgg__iinnffoo 
[--BBbbccDDddFFffhhIIiikkLLmmNNnnppqqRRSSssVVvvXX] 
[--ee _p_a_c_k_a_g_e] [--EE _p_a_c_k_a_g_e]
               [--KK _p_k_g___d_b_d_i_r] [--ll _p_r_e_f_i_x] 
_p_k_g_-_n_a_m_e _._._.
      ppkkgg__iinnffoo [--aa | --uu] [flags]
      ppkkgg__iinnffoo [--QQ _v_a_r_i_a_b_l_e] 
_p_k_g_-_n_a_m_e _._._.




Home | Main Index | Thread Index | Old Index