[Python-modules-team] Bug#941558: check-manifest: autopkgtest failure with transitional bzr package.

Sergio Durigan Junior sergiodj at debian.org
Wed Oct 2 14:48:17 BST 2019


On Tuesday, October 01 2019, peter green wrote:

> bzr recently became a transitional package to breezy (a fork of bzr), unfortunately this is causing the autopkgtest of check-manifest to fail.
>
>> ======================================================================
>> ERROR: test_get_vcs_files (tests.TestBzr)
>> ----------------------------------------------------------------------
>> Traceback (most recent call last):
>>    File "/tmp/autopkgtest-lxc.97siff98/downtmp/build.JQe/src/tests.py", line 900, in test_get_vcs_files
>>      self.assertEqual(get_vcs_files(),
>>    File "/tmp/autopkgtest-lxc.97siff98/downtmp/build.JQe/src/check_manifest.py", line 480, in get_vcs_files
>>      return normalize_names(vcs.get_versioned_files())
>>    File "/tmp/autopkgtest-lxc.97siff98/downtmp/build.JQe/src/check_manifest.py", line 405, in get_versioned_files
>>      output = run(['bzr', 'ls', '-VR'], encoding=encoding)
>>    File "/tmp/autopkgtest-lxc.97siff98/downtmp/build.JQe/src/check_manifest.py", line 157, in run
>>      raise CommandFailed(command, status, output)
>> check_manifest.CommandFailed: ['bzr', 'ls', '-VR'] failed (status 3):
>> a.txt
>> b/
>> b/b.txt
>> b/c/
>> b/c/d.txt
>> brz: ERROR: [Errno 2] No such file or directory: '/home/debci/.config/breezy'
> Can you fix your package and/or it's autopkgtest so that the transitional bzr package can migrate to testing?

This is a bug on breezy.  It took me quite some time to understand what
is going on (I still don't know the full details) and to come up with a
fix.  It's basically a hack: check-manifest will create a
~/.config/breezy directory tree if it doesn't exist.  breezy absolutely
shouldn't fail if this directory isn't there, but unfortunately it
does.

I also decided to force $HOME to be /tmp, since it's not always possible
to guarantee that it will be set or be writable.

I'll upload a fixed package soon, but thought I'd let you know.

Thanks,

-- 
Sergio
GPG key ID: 237A 54B1 0287 28BF 00EF  31F4 D0EB 7628 65FC 5E36
Please send encrypted e-mail if possible
http://sergiodj.net/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 832 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/python-modules-team/attachments/20191002/cec693ec/attachment.sig>


More information about the Python-modules-team mailing list