pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/pkgtools/pkglint/files pkgtools/pkglint: fine-tune man...
details: https://anonhg.NetBSD.org/pkgsrc/rev/7058a64edee2
branches: trunk
changeset: 410118:7058a64edee2
user: rillig <rillig%pkgsrc.org@localhost>
date: Sun Jan 26 19:35:22 2020 +0000
description:
pkgtools/pkglint: fine-tune manual page
diffstat:
pkgtools/pkglint/files/homepage.go | 6 +++++-
pkgtools/pkglint/files/pkglint.0 | 32 ++++++++++++++++----------------
pkgtools/pkglint/files/pkglint.1 | 34 +++++++++++++++++-----------------
3 files changed, 38 insertions(+), 34 deletions(-)
diffs (180 lines):
diff -r 2dadb10878ce -r 7058a64edee2 pkgtools/pkglint/files/homepage.go
--- a/pkgtools/pkglint/files/homepage.go Sun Jan 26 19:08:41 2020 +0000
+++ b/pkgtools/pkglint/files/homepage.go Sun Jan 26 19:35:22 2020 +0000
@@ -219,7 +219,11 @@
shouldAutofix := toReachable == yes
if port == "" && G.Opts.Network && toReachable == unknown {
_, migrated := replaceOnce(url, from, to)
- shouldAutofix = ck.isReachable(migrated) == yes
+ if ck.isReachable(migrated) == yes {
+ shouldAutofix = true
+ } else {
+ return false, "", ""
+ }
}
return shouldAutofix, from, to
}
diff -r 2dadb10878ce -r 7058a64edee2 pkgtools/pkglint/files/pkglint.0
--- a/pkgtools/pkglint/files/pkglint.0 Sun Jan 26 19:08:41 2020 +0000
+++ b/pkgtools/pkglint/files/pkglint.0 Sun Jan 26 19:35:22 2020 +0000
@@ -14,49 +14,49 @@
â??â??CC{{[[nnooâ??â??]]cchheecckk,,......}} Enable or disable specific checks. For a list of
checks, see below.
- â??â??dd|â??â??â??â??ddeebbuugg Enable or disable verbose log for debugging pkglint.
+ â??â??dd|â??â??â??â??ddeebbuugg Enable or disable verbose log for debugging pkglint.
- â??â??ee|â??â??â??â??eexxppllaaiinn Print verbose explanations for diagnostics.
+ â??â??ee|â??â??â??â??eexxppllaaiinn Print verbose explanations for diagnostics.
- â??â??FF|â??â??â??â??aauuttooffiixx Repair some of the warnings automatically.
+ â??â??FF|â??â??â??â??aauuttooffiixx Repair some of the warnings automatically.
- â??â??gg|â??â??â??â??ggccccâ??â??oouuttppuuttâ??â??ffoorrmmaatt
+ â??â??gg|â??â??â??â??ggccccâ??â??oouuttppuuttâ??â??ffoorrmmaatt
Use a format for the diagnostics that is understood
by most programs, especially editors, so they can
provide a pointâ??andâ??goto interface.
- â??â??hh|â??â??â??â??hheellpp Show the summary of command line options, then exit.
+ â??â??hh|â??â??â??â??hheellpp Show the summary of command line options, then exit.
â??â??II Show the _M_a_k_e_f_i_l_e that is constructed by including
all the files that are slurped in via â??.includeâ??
directives. This flag is mainly for debugging.
- â??â??ii|â??â??â??â??iimmppoorrtt Check if a package is ready to be imported into
+ â??â??ii|â??â??â??â??iimmppoorrtt Check if a package is ready to be imported into
pkgsrc. This is especially useful for packages from
the pkgsrcâ??wip project.
- â??â??nn|â??â??â??â??nneettwwoorrkk Enable checks that require network access, for examâ??
+ â??â??nn|â??â??â??â??nneettwwoorrkk Enable checks that require network access, for examâ??
ple to check whether the package homepage is reachâ??
able.
- â??â??oo|â??â??â??â??oonnllyy _s_u_b_s_t_r_i_n_g
+ â??â??oo|â??â??â??â??oonnllyy _s_u_b_s_t_r_i_n_g
Only handle those diagnostics that have _s_u_b_s_t_r_i_n_g in
their text. This is useful in combination with
- â??â??â??â??aauuttooffiixx and â??â??â??â??rreeccuurrssiivvee,, to fix only a single kind
+ â??â??â??â??aauuttooffiixx and â??â??â??â??rreeccuurrssiivvee,, to fix only a single kind
of warning in a large number of files.
- â??â??qq|â??â??â??â??qquuiieett Donâ??t print the errors and warnings summary at the
+ â??â??qq|â??â??â??â??qquuiieett Donâ??t print the errors and warnings summary at the
end.
- â??â??rr|â??â??â??â??rreeccuurrssiivvee Check subdirectories, too. The subdirectories are
+ â??â??rr|â??â??â??â??rreeccuurrssiivvee Check subdirectories, too. The subdirectories are
those that are mentioned in a â??SUBDIR+=â?? line.
- â??â??ss|â??â??â??â??ssoouurrccee For all diagnostics having file and line number
+ â??â??ss|â??â??â??â??ssoouurrccee For all diagnostics having file and line number
information, show the source code along with the
diagnostics. This is especially useful together with
- the â??â??ff|â??â??â??â??sshhoowwâ??â??aauuttooffiixx option.
+ the â??â??ff|â??â??â??â??sshhoowwâ??â??aauuttooffiixx option.
- â??â??VV|â??â??â??â??vveerrssiioonn Print the current ppkkgglliinntt version number and exit.
+ â??â??VV|â??â??â??â??vveerrssiioonn Print the current ppkkgglliinntt version number and exit.
â??â??WW{{[[nnooâ??â??]]wwaarrnn,,......}} Enable or disable specific warnings. For a list of
warnings, see below.
@@ -84,8 +84,8 @@
in shell programs and shell variables themselves.
OOtthheerr aarrgguummeennttss
- _d_i_r _._._. The pkgsrc directories to be checked. If omitâ??
- ted, the current directory is checked.
+ _d_i_r _._._. The pkgsrc directories to be checked. If omitted,
+ the current directory is checked.
FFIILLEESS
pkgsrc/mk/* Files from the pkgsrc infrastructure.
diff -r 2dadb10878ce -r 7058a64edee2 pkgtools/pkglint/files/pkglint.1
--- a/pkgtools/pkglint/files/pkglint.1 Sun Jan 26 19:08:41 2020 +0000
+++ b/pkgtools/pkglint/files/pkglint.1 Sun Jan 26 19:35:22 2020 +0000
@@ -1,4 +1,4 @@
-.\" $NetBSD: pkglint.1,v 1.64 2020/01/26 17:18:25 rillig Exp $
+.\" $NetBSD: pkglint.1,v 1.65 2020/01/26 19:35:22 rillig Exp $
.\" From FreeBSD: portlint.1,v 1.8 1997/11/25 14:53:14 itojun Exp
.\"
.\" Copyright (c) 1997 by Jun-ichiro Itoh <itojun%itojun.org@localhost>.
@@ -29,16 +29,16 @@
.It Fl C{[no-]check,...}
Enable or disable specific checks.
For a list of checks, see below.
-.It Fl d Ns | Ns Fl -debug
+.It Fl d Ns | Ns Fl Fl debug
Enable or disable verbose log for debugging pkglint.
-.It Fl e Ns | Ns Fl -explain
+.It Fl e Ns | Ns Fl Fl explain
Print verbose explanations for diagnostics.
-.It Fl F Ns | Ns Fl -autofix
+.It Fl F Ns | Ns Fl Fl autofix
Repair some of the warnings automatically.
-.It Fl g Ns | Ns Fl -gcc-output-format
+.It Fl g Ns | Ns Fl Fl gcc-output-format
Use a format for the diagnostics that is understood by most programs,
especially editors, so they can provide a point-and-goto interface.
-.It Fl h Ns | Ns Fl -help
+.It Fl h Ns | Ns Fl Fl help
Show the summary of command line options, then exit.
.It Fl I
Show the
@@ -48,35 +48,35 @@
.Ql .include
directives.
This flag is mainly for debugging.
-.It Fl i Ns | Ns Fl -import
+.It Fl i Ns | Ns Fl Fl import
Check if a package is ready to be imported into pkgsrc.
This is especially useful for packages from the pkgsrc-wip project.
-.It Fl n Ns | Ns Fl -network
+.It Fl n Ns | Ns Fl Fl network
Enable checks that require network access,
for example to check whether the package homepage is reachable.
-.It Fl o Ns | Ns Fl -only Ar substring
+.It Fl o Ns | Ns Fl Fl only Ar substring
Only handle those diagnostics that have
.Ar substring
in their text.
This is useful in combination with
-.Fl -autofix
+.Fl Fl autofix
and
-.Fl -recursive,
+.Fl Fl recursive,
to fix only a single kind of warning in a large number of files.
-.It Fl q Ns | Ns Fl -quiet
+.It Fl q Ns | Ns Fl Fl quiet
Don't print the errors and warnings summary at the end.
-.It Fl r Ns | Ns Fl -recursive
+.It Fl r Ns | Ns Fl Fl recursive
Check subdirectories, too.
The subdirectories are those that are mentioned in a
.Ql SUBDIR+=
line.
-.It Fl s Ns | Ns Fl -source
+.It Fl s Ns | Ns Fl Fl source
For all diagnostics having file and line number information, show the
source code along with the diagnostics.
This is especially useful together with the
-.Fl f Ns | Ns Fl -show-autofix
+.Fl f Ns | Ns Fl Fl show-autofix
option.
-.It Fl V Ns | Ns Fl -version
+.It Fl V Ns | Ns Fl Fl version
Print the current
.Nm
version number and exit.
@@ -111,7 +111,7 @@
.El
.\" =======================================================================
.Ss Other arguments
-.Bl -tag -width 18n -offset indent
+.Bl -tag -width 18n
.It Ar dir ...
The pkgsrc directories to be checked.
If omitted, the current directory is checked.
Home |
Main Index |
Thread Index |
Old Index