Your message dated Mon, 26 Aug 2019 06:07:08 +0000
with message-id <e1i289k-0006cx...@fasolo.debian.org>
and subject line Bug#935680: fixed in python-schema-salad 4.5.20190815125611-3
has caused the Debian Bug report #935680,
regarding lower-case.patch: fix to also work under autopkgtest conditions
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 ow...@bugs.debian.org
immediately.)


-- 
935680: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=935680
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems
--- Begin Message ---
Package: python-schema-salad
Version: 4.5.20190815125611-2
Severity: serious
Tags: patch
Justification: blocks testing migration
User: ubuntu-de...@lists.ubuntu.com
Usertags: origin-ubuntu eoan ubuntu-patch

Hi Michael,

The autopkgtests of the latest python-schema-salad fail because
debian/patches/lower-case.patch requires the test dir to be writable, and
this is not the case when the tests are installed to the system under /usr
and the autopkgtests are run as non-root.

Attached is a patch that works around this by catching the PermissionError
exception.

Alternatively, you could work around this by adding a Restrictions: needs-root
to debian/tests/control.

Cheers,
-- 
Steve Langasek                   Give me a lever long enough and a Free OS
Debian Developer                   to set it on, and I can move the world.
Ubuntu Developer                                   https://www.debian.org/
slanga...@ubuntu.com                                     vor...@debian.org
diff -Nru 
python-schema-salad-4.5.20190815125611/debian/patches/lower-case.patch 
python-schema-salad-4.5.20190815125611/debian/patches/lower-case.patch
--- python-schema-salad-4.5.20190815125611/debian/patches/lower-case.patch      
2019-08-16 03:43:50.000000000 -0700
+++ python-schema-salad-4.5.20190815125611/debian/patches/lower-case.patch      
2019-08-24 23:14:17.000000000 -0700
@@ -4,21 +4,24 @@
 
     only be case insensitive when needed
 
-diff --git a/schema_salad/tests/test_ref_resolver.py 
b/schema_salad/tests/test_ref_resolver.py
-index 04f6605..26f2f8a 100644
---- a/schema_salad/tests/test_ref_resolver.py
-+++ b/schema_salad/tests/test_ref_resolver.py
-@@ -13,6 +13,9 @@ from requests import Session
+Index: 
python-schema-salad-4.5.20190815125611/schema_salad/tests/test_ref_resolver.py
+===================================================================
+--- 
python-schema-salad-4.5.20190815125611.orig/schema_salad/tests/test_ref_resolver.py
++++ 
python-schema-salad-4.5.20190815125611/schema_salad/tests/test_ref_resolver.py
+@@ -13,6 +13,12 @@
  from schema_salad.ref_resolver import DefaultFetcher, Loader, file_uri
  from schema_salad.tests.util import get_data
  
 +def is_fs_case_sensitive(path):  # 
https://stackoverflow.com/a/36612604/1585509
-+    with tempfile.NamedTemporaryFile(prefix='TmP',dir=path) as tmp_file:
-+        return(not os.path.exists(tmp_file.name.lower()))
++    try:
++        with tempfile.NamedTemporaryFile(prefix='TmP',dir=path) as tmp_file:
++            return(not os.path.exists(tmp_file.name.lower()))
++    except PermissionError:
++        return True
  
  @pytest.fixture
  def tmp_dir_fixture(request):
-@@ -170,24 +173,27 @@ def test_import_list():
+@@ -170,24 +176,27 @@
  
  
  def test_fetch_inject_id():

--- End Message ---
--- Begin Message ---
Source: python-schema-salad
Source-Version: 4.5.20190815125611-3

We believe that the bug you reported is fixed in the latest version of
python-schema-salad, 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 935...@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Michael R. Crusoe <michael.cru...@gmail.com> (supplier of updated 
python-schema-salad 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 ftpmas...@ftp-master.debian.org)


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

Format: 1.8
Date: Mon, 26 Aug 2019 07:07:03 +0200
Source: python-schema-salad
Architecture: source
Version: 4.5.20190815125611-3
Distribution: unstable
Urgency: medium
Maintainer: Debian Med Packaging Team 
<debian-med-packag...@lists.alioth.debian.org>
Changed-By: Michael R. Crusoe <michael.cru...@gmail.com>
Closes: 935680
Changes:
 python-schema-salad (4.5.20190815125611-3) unstable; urgency=medium
 .
   * debian/patches/lower-case.patch: improvement from Steve Langasek
     <steve.langa...@canonical.com>, thanks! (Closes: #935680)
   * debian/rules: use interpreter shortcut in pytest invocation
Checksums-Sha1:
 6d900e72ab81a8e1f6b89e828ee594ed451b4387 2489 
python-schema-salad_4.5.20190815125611-3.dsc
 f55196342cb4e3bb17d8463f82fbe7f50cff02d0 4396 
python-schema-salad_4.5.20190815125611-3.debian.tar.xz
 1b876a5bce3a8e1b97d848479badaabbd154fea8 9000 
python-schema-salad_4.5.20190815125611-3_source.buildinfo
Checksums-Sha256:
 6128ecf4b2f4ab43d02a0fd4f394c4f340053aac3837a04a0c5906d2ddb7574a 2489 
python-schema-salad_4.5.20190815125611-3.dsc
 5cb561e62d21de994065eaa5c0f116977b12fc79efb226e9744a2cb7f2479bb6 4396 
python-schema-salad_4.5.20190815125611-3.debian.tar.xz
 8b007bfcac80a9e0bd5a2b30c90c5ee41dbad010e37f3b4e8ca48e9f8cce81f1 9000 
python-schema-salad_4.5.20190815125611-3_source.buildinfo
Files:
 0d06864a00e1eddd4bf58b7de6c6f851 2489 python optional 
python-schema-salad_4.5.20190815125611-3.dsc
 4366b91730c44568f7947955a11c5c36 4396 python optional 
python-schema-salad_4.5.20190815125611-3.debian.tar.xz
 faf57ea228dc9b7a33b474304c8af847 9000 python optional 
python-schema-salad_4.5.20190815125611-3_source.buildinfo

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

iQIzBAEBCgAdFiEEck1gkzcRPHEFUNdHPCZ2P2xn5uIFAl1jalYACgkQPCZ2P2xn
5uIjZg//b9Ekcx40egIqM70/4Sl1jaINq411AoWHSJS6IduyRNrzUZq3FbPa0fMJ
fUt//FdXNUHvSlj7heKJ3XbEDMtkKkQ1Sp39stz0QStKHAEhnBEmOPnBYTjWU4KW
LVv+b6Sf4x7ePrH3KRWFGVuA4aO+wv9j1BSC2Bvw+10Qk+fjOYfOcrLP5r+rdcXC
pRBBPkIGav+78qyOu/sq1MyQvN6LFBLrkUgNtYa2cHeVjqKmUR+xq2RzZhJMGd30
gSSl/ofA/jqHySfwDAMg8X4VDZyOjOYrETy7eRYF9RTXWzbipLCmm5d861AQs7eS
tKW5ACt7SQiR42foWuexqAjYpzJ/m9ei4a6iIkLSpc9eqii6aMEWvHNyO8wo/Rup
6nrxaED9VCDbwaaA+WL4E07bU/76agQJAmQcHbaBykfAF70D6y0SgrtjlEEmYmRu
cc9vuyq+QzwpYoPeqjml+LQqIkU9tqE8cM0B2aZbuvBSfUq2Zq/YcYR/JdDaqt5D
iw2a+IC1jfyFhB9X7hM/GxfFApXfIObGgdoa7Ka5dFcZKlpAEvWEY1dbeXDhO3VR
hMAIBLKoqhMk60Rvi6My6655iBts58gNWDPX89gj66N9BR4RssAyQdAyfJe6xMP6
7sRp8aAR/X3PMaoYX/UDH6irlGpeH9FvUlq+8cZjswpOkVO4atQ=
=r6g5
-----END PGP SIGNATURE-----

--- End Message ---

Reply via email to