Blame SOURCES/bzr-gpg-no-agent-error.patch

668aba
Index: bzr-2.5.1/bzrlib/gpg.py
668aba
===================================================================
668aba
--- bzr-2.5.1.orig/bzrlib/gpg.py
668aba
+++ bzr-2.5.1/bzrlib/gpg.py
668aba
@@ -190,7 +190,7 @@ class GPGStrategy(object):
668aba
             # use the user email address
668aba
             key = config.extract_email_address(self._config_stack.get('email'))
668aba
         return [self._config_stack.get('gpg_signing_command'), '--clearsign',
668aba
-                '-u', key, '--no-tty']
668aba
+                '-u', key]
668aba
 
668aba
     def sign(self, content):
668aba
         if isinstance(content, unicode):
668aba
Index: bzr-2.5.1/bzrlib/tests/test_gpg.py
668aba
===================================================================
668aba
--- bzr-2.5.1.orig/bzrlib/tests/test_gpg.py
668aba
+++ bzr-2.5.1/bzrlib/tests/test_gpg.py
668aba
@@ -51,7 +51,7 @@ class TestCommandLine(tests.TestCase):
668aba
         self.my_gpg = gpg.GPGStrategy(FakeConfig())
668aba
 
668aba
     def test_signing_command_line(self):
668aba
-        self.assertEqual(['false',  '--clearsign', '-u', 'amy@example.com', '--no-tty'],
668aba
+        self.assertEqual(['false',  '--clearsign', '-u', 'amy@example.com'],
668aba
                          self.my_gpg._command_line())
668aba
 
668aba
     def test_signing_command_line_from_default(self):
668aba
@@ -60,7 +60,7 @@ class TestCommandLine(tests.TestCase):
668aba
 email=Amy <amy@example.com>
668aba
 gpg_signing_key=default
668aba
 gpg_signing_command=false'''))
668aba
-        self.assertEqual(['false',  '--clearsign', '-u', 'amy@example.com', '--no-tty'],
668aba
+        self.assertEqual(['false',  '--clearsign', '-u', 'amy@example.com'],
668aba
                          my_gpg._command_line())
668aba
 
668aba
     def test_signing_command_line_from_email(self):
668aba
@@ -68,7 +68,7 @@ gpg_signing_command=false'''))
668aba
         my_gpg = gpg.GPGStrategy(FakeConfig('''
668aba
 email=Amy <amy@example.com>
668aba
 gpg_signing_command=false'''))
668aba
-        self.assertEqual(['false',  '--clearsign', '-u', 'amy@example.com', '--no-tty'],
668aba
+        self.assertEqual(['false',  '--clearsign', '-u', 'amy@example.com'],
668aba
                          my_gpg._command_line())
668aba
 
668aba
     def test_checks_return_code(self):