Received: by mail.netbsd.org (Postfix, from userid 605) id 5569584E72; Sun, 26 Jan 2020 19:35:24 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by mail.netbsd.org (Postfix) with ESMTP id D36AD84E62 for ; Sun, 26 Jan 2020 19:35:23 +0000 (UTC) X-Virus-Scanned: amavisd-new at netbsd.org Received: from mail.netbsd.org ([127.0.0.1]) by localhost (mail.netbsd.org [127.0.0.1]) (amavisd-new, port 10025) with ESMTP id AtKj9XfOdvRv for ; Sun, 26 Jan 2020 19:35:23 +0000 (UTC) Received: from cvs.NetBSD.org (ivanova.netbsd.org [199.233.217.197]) by mail.netbsd.org (Postfix) with ESMTP id 0A92E84CCD for ; Sun, 26 Jan 2020 19:35:23 +0000 (UTC) Received: by cvs.NetBSD.org (Postfix, from userid 500) id 007D6FBF4; Sun, 26 Jan 2020 19:35:22 +0000 (UTC) Content-Transfer-Encoding: 7bit Content-Type: multipart/mixed; boundary="_----------=_158006732299150" MIME-Version: 1.0 Date: Sun, 26 Jan 2020 19:35:22 +0000 From: "Roland Illig" Subject: CVS commit: pkgsrc/pkgtools/pkglint/files To: pkgsrc-changes@NetBSD.org Reply-To: rillig@netbsd.org X-Mailer: log_accum Message-Id: <20200126193523.007D6FBF4@cvs.NetBSD.org> Sender: pkgsrc-changes-owner@NetBSD.org List-Id: pkgsrc-changes.NetBSD.org Precedence: bulk List-Unsubscribe: This is a multi-part message in MIME format. --_----------=_158006732299150 Content-Disposition: inline Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="US-ASCII" Module Name: pkgsrc Committed By: rillig Date: Sun Jan 26 19:35:22 UTC 2020 Modified Files: pkgsrc/pkgtools/pkglint/files: homepage.go pkglint.0 pkglint.1 Log Message: pkgtools/pkglint: fine-tune manual page To generate a diff of this commit: cvs rdiff -u -r1.1 -r1.2 pkgsrc/pkgtools/pkglint/files/homepage.go cvs rdiff -u -r1.43 -r1.44 pkgsrc/pkgtools/pkglint/files/pkglint.0 cvs rdiff -u -r1.64 -r1.65 pkgsrc/pkgtools/pkglint/files/pkglint.1 Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. --_----------=_158006732299150 Content-Disposition: inline Content-Length: 9402 Content-Transfer-Encoding: binary Content-Type: text/x-diff; charset=utf-8 Modified files: Index: pkgsrc/pkgtools/pkglint/files/homepage.go diff -u pkgsrc/pkgtools/pkglint/files/homepage.go:1.1 pkgsrc/pkgtools/pkglint/files/homepage.go:1.2 --- pkgsrc/pkgtools/pkglint/files/homepage.go:1.1 Sun Jan 26 17:12:36 2020 +++ pkgsrc/pkgtools/pkglint/files/homepage.go Sun Jan 26 19:35:22 2020 @@ -219,7 +219,11 @@ func (ck *HomepageChecker) toHttps(url s 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 } Index: pkgsrc/pkgtools/pkglint/files/pkglint.0 diff -u pkgsrc/pkgtools/pkglint/files/pkglint.0:1.43 pkgsrc/pkgtools/pkglint/files/pkglint.0:1.44 --- pkgsrc/pkgtools/pkglint/files/pkglint.0:1.43 Sun Jan 26 17:18:25 2020 +++ pkgsrc/pkgtools/pkglint/files/pkglint.0 Sun Jan 26 19:35:22 2020 @@ -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. Index: pkgsrc/pkgtools/pkglint/files/pkglint.1 diff -u pkgsrc/pkgtools/pkglint/files/pkglint.1:1.64 pkgsrc/pkgtools/pkglint/files/pkglint.1:1.65 --- pkgsrc/pkgtools/pkglint/files/pkglint.1:1.64 Sun Jan 26 17:18:25 2020 +++ pkgsrc/pkgtools/pkglint/files/pkglint.1 Sun Jan 26 19:35:22 2020 @@ -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 . @@ -29,16 +29,16 @@ to be bugs, or that are simply deprecate .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. --_----------=_158006732299150--