Merge "de-fuzz python-keyring patch"

This commit is contained in:
Zuul 2018-10-10 03:19:47 +00:00 committed by Gerrit Code Review
commit 9d1287f97a

View File

@ -1,8 +1,8 @@
Index: keyring-3.2/keyring/backends/file.py
===================================================================
--- keyring-3.2.orig/keyring/backends/file.py
+++ keyring-3.2/keyring/backends/file.py
@@ -114,7 +114,7 @@ class BaseKeyring(KeyringBackend):
diff --git a/keyring/backends/file.py b/keyring/backends/file.py
index f899880..ef6db1d 100644
--- a/keyring/backends/file.py
+++ b/keyring/backends/file.py
@@ -116,7 +116,7 @@ class BaseKeyring(FileBacked, KeyringBackend):
# create the file without group/world permissions
with open(self.file_path, 'w'):
pass
@ -11,7 +11,7 @@ Index: keyring-3.2/keyring/backends/file.py
os.chmod(self.file_path, user_read_write)
def delete_password(self, service, username):
@@ -188,12 +188,19 @@ class EncryptedKeyring(BaseKeyring):
@@ -172,12 +172,19 @@ class Encrypted(object):
def _get_new_password(self):
while True:
@ -37,7 +37,7 @@ Index: keyring-3.2/keyring/backends/file.py
if '' == password.strip():
# forbid the blank password
sys.stderr.write("Error: blank passwords aren't allowed.\n")
@@ -233,8 +240,15 @@ class EncryptedKeyring(BaseKeyring):
@@ -248,8 +255,15 @@ class EncryptedKeyring(Encrypted, BaseKeyring):
Unlock this keyring by getting the password for the keyring from the
user.
"""
@ -55,11 +55,11 @@ Index: keyring-3.2/keyring/backends/file.py
try:
ref_pw = self.get_password('keyring-setting', 'password reference')
assert ref_pw == 'password reference value'
Index: keyring-3.2/keyring/util/platform_.py
===================================================================
--- keyring-3.2.orig/keyring/util/platform_.py
+++ keyring-3.2/keyring/util/platform_.py
@@ -16,7 +16,7 @@ def _data_root_Linux():
diff --git a/keyring/util/platform_.py b/keyring/util/platform_.py
index dcdffea..53b9eae 100644
--- a/keyring/util/platform_.py
+++ b/keyring/util/platform_.py
@@ -19,7 +19,7 @@ def _data_root_Linux():
Use freedesktop.org Base Dir Specfication to determine storage
location.
"""