File: Group-write-if-write-access-is-needed.patch

package info (click to toggle)
php-crypt-gpg 1.6.4-2%2Bdeb11u1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 2,184 kB
  • sloc: php: 9,171; xml: 201; makefile: 9
file content (31 lines) | stat: -rw-r--r-- 1,106 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
From: David Prévot <david@tilapin.org>
Date: Fri, 25 Mar 2016 14:20:33 -0400
Subject: Group write if write access is needed

In the build and autopkgtest environment ~/.gnupg is not accessible and
cannot be created, failing GeneralTestCase::testSetEngine with

    Crypt_GPG_FileException: The 'homedir' "…/.gnupg" is not readable or
    does not exist and cannot be created. This can happen if 'homedir'
    is not specified in the Crypt_GPG options, Crypt_GPG is run as the
    web user, and the web user has no home directory.

Forwarded: not-needed
---
 Crypt_GPG-1.6.4/tests/GeneralTest.php | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/Crypt_GPG-1.6.4/tests/GeneralTest.php b/Crypt_GPG-1.6.4/tests/GeneralTest.php
index d7de42a..033a27f 100644
--- a/Crypt_GPG-1.6.4/tests/GeneralTest.php
+++ b/Crypt_GPG-1.6.4/tests/GeneralTest.php
@@ -186,6 +186,9 @@ class GeneralTestCase extends Crypt_GPG_TestCase
     // }}}
     // {{{ testSetEngine()
 
+    /**
+     * @group write
+     */
     public function testSetEngine()
     {
         $engine = new Crypt_GPG_Engine($this->getOptions());