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

package info (click to toggle)
php-crypt-gpg 1.6.11-1
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 1,352 kB
  • sloc: php: 9,155; xml: 191; makefile: 8
file content (31 lines) | stat: -rw-r--r-- 1,140 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.11/tests/GeneralTest.php | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/Crypt_GPG-1.6.11/tests/GeneralTest.php b/Crypt_GPG-1.6.11/tests/GeneralTest.php
index 8941af0..3f0107d 100644
--- a/Crypt_GPG-1.6.11/tests/GeneralTest.php
+++ b/Crypt_GPG-1.6.11/tests/GeneralTest.php
@@ -140,6 +140,9 @@ class GeneralTest extends Crypt_GPG_TestCase
         new Crypt_GPG(['gpgBinary' => './non-existent-binary']);
     }
 
+    /**
+     * @group write
+     */
     public function testSetEngine()
     {
         $engine = new Crypt_GPG_Engine($this->getOptions());