diff options
author | rillig <rillig@pkgsrc.org> | 2020-01-26 19:35:22 +0000 |
---|---|---|
committer | rillig <rillig@pkgsrc.org> | 2020-01-26 19:35:22 +0000 |
commit | 2a29a0415d978a938a449f84025cbf1171711b93 (patch) | |
tree | 680540c1ddf891e413f3afd32356f34f372f08d8 /pkgtools | |
parent | 977e1996f3f9bf4a12980f177da859e9860fe1f2 (diff) | |
download | pkgsrc-2a29a0415d978a938a449f84025cbf1171711b93.tar.gz |
pkgtools/pkglint: fine-tune manual page
Diffstat (limited to 'pkgtools')
-rw-r--r-- | pkgtools/pkglint/files/homepage.go | 6 | ||||
-rw-r--r-- | pkgtools/pkglint/files/pkglint.0 | 32 | ||||
-rw-r--r-- | pkgtools/pkglint/files/pkglint.1 | 34 |
3 files changed, 38 insertions, 34 deletions
diff --git a/pkgtools/pkglint/files/homepage.go b/pkgtools/pkglint/files/homepage.go index cdf6755f640..b07fd2f2aa1 100644 --- a/pkgtools/pkglint/files/homepage.go +++ b/pkgtools/pkglint/files/homepage.go @@ -219,7 +219,11 @@ func (ck *HomepageChecker) toHttps(url string) (bool, string, string) { 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 --git a/pkgtools/pkglint/files/pkglint.0 b/pkgtools/pkglint/files/pkglint.0 index 34c245b3f23..70af1eaabc8 100644 --- a/pkgtools/pkglint/files/pkglint.0 +++ b/pkgtools/pkglint/files/pkglint.0 @@ -14,49 +14,49 @@ DDEESSCCRRIIPPTTIIOONN −−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 @@ DDEESSCCRRIIPPTTIIOONN 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 --git a/pkgtools/pkglint/files/pkglint.1 b/pkgtools/pkglint/files/pkglint.1 index dd98ef35dcd..1f18f7191ee 100644 --- a/pkgtools/pkglint/files/pkglint.1 +++ b/pkgtools/pkglint/files/pkglint.1 @@ -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>. @@ -29,16 +29,16 @@ to be bugs, or that are simply deprecated. .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 @@ are slurped in via .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 @@ and shell variables themselves. .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. |