]> git.pld-linux.org Git - packages/wget.git/commitdiff
- libgpgme can create more files, ignore these and that fixes tests Test-metalink...
authorArkadiusz Miśkiewicz <arekm@maven.pl>
Mon, 30 Oct 2017 11:44:54 +0000 (12:44 +0100)
committerArkadiusz Miśkiewicz <arekm@maven.pl>
Mon, 30 Oct 2017 11:44:54 +0000 (12:44 +0100)
wget-tests.patch [new file with mode: 0644]
wget.spec

diff --git a/wget-tests.patch b/wget-tests.patch
new file mode 100644 (file)
index 0000000..f754951
--- /dev/null
@@ -0,0 +1,14 @@
+--- wget-1.19.2/testenv/conf/expected_files.py.org     2017-10-30 12:36:46.911716601 +0100
++++ wget-1.19.2/testenv/conf/expected_files.py 2017-10-30 12:41:03.358656484 +0100
+@@ -24,9 +24,9 @@ class ExpectedFiles:
+         snapshot = {}
+         for parent, dirs, files in os.walk('.'):
+             for name in files:
+-                # pubring.kbx will be created by libgpgme if $HOME doesn't contain the .gnupg directory.
++                # pubring.kbx, dirmngr.conf, gpg.conf can be created by libgpgme if $HOME doesn't contain the .gnupg directory.
+                                        # setting $HOME to CWD (in base_test.py) breaks two Metalink tests, so we skip this file here.
+-                if name == 'pubring.kbx':
++                if name == 'pubring.kbx' or name == 'dirmngr.conf' or name == 'gpg.conf':
+                     continue
+                 f = {'content': ''}
index 87feca17a26f9fa82c997657875436e1325a4a50..d59d71c5090d1b107fe1cee56b9d8f5ff5ba1400 100644 (file)
--- a/wget.spec
+++ b/wget.spec
@@ -30,6 +30,7 @@ Patch1:               %{name}-wgetrc_path.patch
 Patch2:                %{name}-home_etc.patch
 Patch3:                %{name}-ssl-certs.patch
 Patch4:                user.xdg.origin.url.patch
+Patch5:                %{name}-tests.patch
 URL:           http://www.gnu.org/software/wget/
 BuildRequires: attr-devel
 BuildRequires: autoconf >= 2.61
@@ -138,6 +139,7 @@ Proxy серверів, настроюваність.
 %patch2 -p1
 %patch3 -p1
 %patch4 -p1
+%patch5 -p1
 
 %{__rm} doc/wget.info doc/sample.wgetrc.munged_for_texi_inclusion po/stamp-po
 
This page took 0.249786 seconds and 4 git commands to generate.