Your message dated Thu, 01 Aug 2019 21:08:35 +0000
with message-id <[email protected]>
and subject line Bug#933682: fixed in lintian-brush 0.18
has caused the Debian Bug report #933682,
regarding lintian-brush: Deals badly with homepage-field-uses-insecure-uri if 
upstream does not support https
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
933682: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=933682
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: lintian-brush
Version: 0.17
Severity: normal

Hi,

I was running on paml[1].  It says:

paml(master) $ lintian-brush 
No changes made.                                                                
                                                                                
                            
Some fixer scripts failed to run: {'homepage-field-uses-insecure-uri', 
'dep5-file-paragraph-references-header-paragraph', 
'upstream-metadata-file-is-missing', 'invalid-short-name-in-dep5-copyright', 
'global-files-wildcard-not-first-paragraph-in-dep5-copyright', 
'obsolete-field-in-dep5-copyright'}. Run with --verbose for details.

I tried in verbose mode and here are the problems issued:

Fixer 'dep5-file-paragraph-references-header-paragraph' failed to run.
Script 
/usr/share/lintian-brush/fixers/dep5-file-paragraph-references-header-paragraph.py
 failed with exit code: 1
Traceback (most recent call last):
  File 
"/usr/share/lintian-brush/fixers/dep5-file-paragraph-references-header-paragraph.py",
 line 36, in <module>
    update_copyright(fix_header_license_references)
  File "/usr/lib/python3/dist-packages/lintian_brush/copyright.py", line 41, in 
update_copyright
    'debian/copyright')
  File "/usr/lib/python3/dist-packages/lintian_brush/reformatting.py", line 45, 
in check_preserve_formatting
    raise FormattingUnpreservable(path)
lintian_brush.reformatting.FormattingUnpreservable: debian/copyright

...

Script 
/usr/share/lintian-brush/fixers/global-files-wildcard-not-first-paragraph-in-dep5-copyright.py
 failed with exit code: 1
Traceback (most recent call last):
  File 
"/usr/share/lintian-brush/fixers/global-files-wildcard-not-first-paragraph-in-dep5-copyright.py",
 line 17, in <module>
    update_copyright(swap_files_glob)
  File "/usr/lib/python3/dist-packages/lintian_brush/copyright.py", line 41, in 
update_copyright
    'debian/copyright')
  File "/usr/lib/python3/dist-packages/lintian_brush/reformatting.py", line 45, 
in check_preserve_formatting
    raise FormattingUnpreservable(path)
lintian_brush.reformatting.FormattingUnpreservable: debian/copyright

Fixer 'homepage-field-uses-insecure-uri' failed to run.
Script /usr/share/lintian-brush/fixers/homepage-field-uses-insecure-uri.py 
failed with exit code: 1
Traceback (most recent call last):
  File "/usr/lib/python3.7/urllib/request.py", line 1317, in do_open
    encode_chunked=req.has_header('Transfer-encoding'))
  File "/usr/lib/python3.7/http/client.py", line 1229, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1275, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1224, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1016, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 956, in send
    self.connect()
  File "/usr/lib/python3.7/http/client.py", line 1392, in connect
    server_hostname=server_hostname)
  File "/usr/lib/python3.7/ssl.py", line 412, in wrap_socket
    session=session
  File "/usr/lib/python3.7/ssl.py", line 853, in _create
    self.do_handshake()
  File "/usr/lib/python3.7/ssl.py", line 1117, in do_handshake
    self._sslobj.do_handshake()
ssl.SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate 
verify failed: Hostname mismatch, certificate is not valid for 
'abacus.gene.ucl.ac.uk'. (_ssl.c:1056)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/share/lintian-brush/fixers/homepage-field-uses-insecure-uri.py", 
line 46, in <module>
    update_control(source_package_cb=fix_homepage_header)
  File "/usr/lib/python3/dist-packages/lintian_brush/control.py", line 77, in 
update_control
    update_control_file(BytesIO(original_contents), outf, **kwargs)
  File "/usr/lib/python3/dist-packages/lintian_brush/control.py", line 103, in 
update_control_file
    source_package_cb(paragraph)
  File "/usr/share/lintian-brush/fixers/homepage-field-uses-insecure-uri.py", 
line 43, in fix_homepage_header
    control["Homepage"] = fix_homepage(homepage)
  File "/usr/share/lintian-brush/fixers/homepage-field-uses-insecure-uri.py", 
line 32, in fix_homepage
    https_contents = urllib.request.urlopen(https_url).read()
  File "/usr/lib/python3.7/urllib/request.py", line 222, in urlopen
    return opener.open(url, data, timeout)
  File "/usr/lib/python3.7/urllib/request.py", line 525, in open
    response = self._open(req, data)
  File "/usr/lib/python3.7/urllib/request.py", line 543, in _open
    '_open', req)
  File "/usr/lib/python3.7/urllib/request.py", line 503, in _call_chain
    result = func(*args)
  File "/usr/lib/python3.7/urllib/request.py", line 1360, in https_open
    context=self._context, check_hostname=self._check_hostname)
  File "/usr/lib/python3.7/urllib/request.py", line 1319, in do_open
    raise URLError(err)
urllib.error.URLError: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] 
certificate verify failed: Hostname mismatch, certificate is not valid for 
'abacus.gene.ucl.ac.uk'. (_ssl.c:1056)>

...

Fixer 'invalid-short-name-in-dep5-copyright' failed to run.
Script /usr/share/lintian-brush/fixers/invalid-short-name-in-dep5-copyright.py 
failed with exit code: 1
Traceback (most recent call last):
  File 
"/usr/share/lintian-brush/fixers/invalid-short-name-in-dep5-copyright.py", line 
37, in <module>
    update_copyright(fix_shortname)
  File "/usr/lib/python3/dist-packages/lintian_brush/copyright.py", line 41, in 
update_copyright
    'debian/copyright')
  File "/usr/lib/python3/dist-packages/lintian_brush/reformatting.py", line 45, 
in check_preserve_formatting
    raise FormattingUnpreservable(path)
lintian_brush.reformatting.FormattingUnpreservable: debian/copyright

...

Fixer 'obsolete-field-in-dep5-copyright' failed to run.
Script /usr/share/lintian-brush/fixers/obsolete-field-in-dep5-copyright.py 
failed with exit code: 1
Traceback (most recent call last):
  File "/usr/share/lintian-brush/fixers/obsolete-field-in-dep5-copyright.py", 
line 34, in <module>
    update_copyright(obsolete_field)
  File "/usr/lib/python3/dist-packages/lintian_brush/copyright.py", line 41, in 
update_copyright
    'debian/copyright')
  File "/usr/lib/python3/dist-packages/lintian_brush/reformatting.py", line 45, 
in check_preserve_formatting
    raise FormattingUnpreservable(path)
lintian_brush.reformatting.FormattingUnpreservable: debian/copyright

...

Fixer 'upstream-metadata-file-is-missing' failed to run.
Script /usr/share/lintian-brush/fixers/upstream-metadata-file-is-missing.py 
failed with exit code: 1
Traceback (most recent call last):
  File "/usr/share/lintian-brush/fixers/upstream-metadata-file-is-missing.py", 
line 24, in <module>
    check_preserve_formatting(rewritten_inp, inp, 'debian/upstream/metadata')
  File "/usr/lib/python3/dist-packages/lintian_brush/reformatting.py", line 45, 
in check_preserve_formatting
    raise FormattingUnpreservable(path)
lintian_brush.reformatting.FormattingUnpreservable: debian/upstream/metadata


I wonder whether the exception handling is a bit broken and should be
cleaned up.

Thanks a lot for this very useful tool anyway

    Andreas.

[1] https://salsa.debian.org/med-team/paml


-- System Information:
Debian Release: 10.0
  APT prefers testing
  APT policy: (501, 'testing'), (50, 'buildd-unstable'), (50, 'unstable'), (5, 
'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.19.0-5-amd64 (SMP w/4 CPU cores)
Locale: LANG=de_DE.utf8, LC_CTYPE=de_DE.utf8 (charmap=UTF-8), 
LANGUAGE=de_DE.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages lintian-brush depends on:
ii  devscripts           2.19.5
ii  python3              3.7.3-1
ii  python3-breezy       3.0.1-1
ii  python3-debian       0.1.35
ii  python3-distro-info  0.21
ii  python3-dulwich      0.19.11-2
ii  python3-levenshtein  0.12.0-3
ii  python3-pkginfo      1.4.2-2
ii  python3-ruamel.yaml  0.15.89-1

Versions of packages lintian-brush recommends:
ii  dos2unix  7.4.0-1
ii  gpg       2.2.12-1
ii  lintian   2.16.0

lintian-brush suggests no packages.

-- no debconf information

--- End Message ---
--- Begin Message ---
Source: lintian-brush
Source-Version: 0.18

We believe that the bug you reported is fixed in the latest version of
lintian-brush, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Jelmer Vernooij <[email protected]> (supplier of updated lintian-brush package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Format: 1.8
Date: Thu, 25 Jul 2019 22:05:12 +0000
Source: lintian-brush
Architecture: source
Version: 0.18
Distribution: unstable
Urgency: medium
Maintainer: Jelmer Vernooij <[email protected]>
Changed-By: Jelmer Vernooij <[email protected]>
Closes: 933682
Changes:
 lintian-brush (0.18) unstable; urgency=medium
 .
   * Fix copyright fields before parsing with python-debian.
   * Add fixer for dh-clean-k-is-deprecated.
   * Handle missing bugtracker/web subkey for META.json files.
   * Upgrade debian/rules in some cases when updating to debhelper 12.
   * Don't remove debian/patches/README.
   * Use the 'Source' field in copyright files when looking for possible
     upstream repositories.
   * Don't worry about preserving all formatting for YAML files; comments
     and indentation are already preserved.
   * Allow stripping trailing whitespace from debian/copyright when modifying
     it.
   * Don't make homepage-field-uses-insecure-uri fixer fail when it can't
     access homepage over HTTPS. Closes: #933682
Checksums-Sha1:
 a8703c60898601a1bd4d89eb889c325ae0884ad9 1886 lintian-brush_0.18.dsc
 e6f4b0af19d017ef4eebd8009197bc5cf3c48381 709296 lintian-brush_0.18.tar.xz
 362bcb6b0b47e6306a9886da1c19662ca6756c32 6862 
lintian-brush_0.18_amd64.buildinfo
Checksums-Sha256:
 e502f55b5cf05e553017a579384e4f4a1dd769d763f714d098af283dbcdd1ba1 1886 
lintian-brush_0.18.dsc
 1c52bfc702740c50d6e8cce95672c9eb73e9f470f559be2ebcb8f9ad016485b0 709296 
lintian-brush_0.18.tar.xz
 882bb279ad503d6b58ee09d87ad9fe5343811b1a9ba852825d785e38cb6e2bae 6862 
lintian-brush_0.18_amd64.buildinfo
Files:
 b0adf47e7353228904719f62b5e63a37 1886 devel optional lintian-brush_0.18.dsc
 3f31f20e0b4a23fc7ba830ed269aab3c 709296 devel optional 
lintian-brush_0.18.tar.xz
 508ec93d7187c52dbceb0368ef08d1d2 6862 devel optional 
lintian-brush_0.18_amd64.buildinfo

-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEEsjhixBXWVlpOhsvXV5wWDUyeI+gFAl1DTTAACgkQV5wWDUye
I+gZIQ//dk7dNGo4xJqFQEpsjCHhmv0EVstgRYBZAcAuTImpkyPcxY6UVN6p9URS
8MGDKLoih45SVkX8zo1bIF4VgC2CFxPV6MKVqmrAJX895PGocsYZY7GxizYBLP+/
9B2vlxLoKEBXX5uAET8W2GsE7bc+G2JB62Pno5RD4oboYLOQm3zlBXxVBj13yeZe
dzaVfeb/em3pRgnA/itsMQ8WFAf3vzx9TqX5r3agLYH+14/A2OTPDvbXJyJJCrCH
6hNpvrLnJ0q9mFMWC3Y1DblNsVLVrT64F42XSsObxW1oKu2jcojIN4sxLd6A5/51
OTTS+3jaJw0aBNzvm62YFM076w6OLouohtNLXXJCJalb0bmcIvyiU6dmYer7TUhv
fRqD6EHtol5vKhVsj3Cy8Dxqa4t0Lju/Fxx3p+fQx7TkAR8kLadc2Zqr8QGLbHT1
zYbA7eqTbalsym4eslDvdqkbEWsMt85gmMwi9aJFhCgz5O+ERGmyDJACMff9K+g8
jMEBo/2cpjHyJic2Tb6NYHVJEeM3VImnZDK1pt6V0NwJx3P15snhi+7Tj67iqicO
RZ0taVYGCwUmxn6pDZsURFHTScBhuOqz9D3zJiwR7U54YEgAP6VoSqAWFQJQfBJo
Mt/oRNJlfYNXY9Wxn3DoWSWPcrzwW1jPe6thgfWtRreZG0f/v1Q=
=Z+2X
-----END PGP SIGNATURE-----

--- End Message ---

Reply via email to