summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJustin Lecher <jlec@gentoo.org>2014-02-21 08:52:14 +0000
committerJustin Lecher <jlec@gentoo.org>2014-02-21 08:52:14 +0000
commit73650c3dba0226e08df1ce52f5f59701e09d89d7 (patch)
tree151c8ea304b4cab60db3b4ec0f976d8edac80d1c /dev-python/mockldap
parentMask app-emacs/mairix for removal. (diff)
downloadgentoo-2-73650c3dba0226e08df1ce52f5f59701e09d89d7.tar.gz
gentoo-2-73650c3dba0226e08df1ce52f5f59701e09d89d7.tar.bz2
gentoo-2-73650c3dba0226e08df1ce52f5f59701e09d89d7.zip
dev-python/mockldap: Version Bump
(Portage version: 2.2.8-r1/cvs/Linux x86_64, signed Manifest commit with key B9D4F231BD1558AB!)
Diffstat (limited to 'dev-python/mockldap')
-rw-r--r--dev-python/mockldap/ChangeLog9
-rw-r--r--dev-python/mockldap/files/mockldap-0.1.4-modify_s-backport.patch42
-rw-r--r--dev-python/mockldap/files/mockldap-0.1.5-modify_s-backport.patch21
-rw-r--r--dev-python/mockldap/mockldap-0.1.5.ebuild (renamed from dev-python/mockldap/mockldap-0.1.4-r1.ebuild)2
4 files changed, 30 insertions, 44 deletions
diff --git a/dev-python/mockldap/ChangeLog b/dev-python/mockldap/ChangeLog
index cc73b23e0782..95c5a0470b45 100644
--- a/dev-python/mockldap/ChangeLog
+++ b/dev-python/mockldap/ChangeLog
@@ -1,6 +1,13 @@
# ChangeLog for dev-python/mockldap
# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-python/mockldap/ChangeLog,v 1.6 2014/02/20 07:30:41 jlec Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-python/mockldap/ChangeLog,v 1.7 2014/02/21 08:52:14 jlec Exp $
+
+*mockldap-0.1.5 (21 Feb 2014)
+
+ 21 Feb 2014; Justin Lecher <jlec@gentoo.org> -mockldap-0.1.4-r1.ebuild,
+ +mockldap-0.1.5.ebuild, -files/mockldap-0.1.4-modify_s-backport.patch,
+ +files/mockldap-0.1.5-modify_s-backport.patch:
+ Version Bump
*mockldap-0.1.4-r1 (20 Feb 2014)
diff --git a/dev-python/mockldap/files/mockldap-0.1.4-modify_s-backport.patch b/dev-python/mockldap/files/mockldap-0.1.4-modify_s-backport.patch
deleted file mode 100644
index 033c8d094945..000000000000
--- a/dev-python/mockldap/files/mockldap-0.1.4-modify_s-backport.patch
+++ /dev/null
@@ -1,42 +0,0 @@
- src/mockldap/ldapobject.py | 2 +-
- src/mockldap/tests.py | 14 --------------
- 2 files changed, 1 insertion(+), 15 deletions(-)
-
-diff --git a/src/mockldap/ldapobject.py b/src/mockldap/ldapobject.py
-index 1528b83..1899824 100644
---- a/src/mockldap/ldapobject.py
-+++ b/src/mockldap/ldapobject.py
-@@ -256,7 +256,7 @@ class LDAPObject(RecordableMethods):
- entry[key].append(subvalue)
- elif op is ldap.MOD_DELETE:
- if not value:
-- del entry[key]
-+ entry[key] = []
- else:
- for subvalue in value:
- if subvalue in entry[key]:
-diff --git a/src/mockldap/tests.py b/src/mockldap/tests.py
-index 2b1276a..1837666 100644
---- a/src/mockldap/tests.py
-+++ b/src/mockldap/tests.py
-@@ -430,20 +430,6 @@ class TestLDAPObject(unittest.TestCase):
- self.assertEqual(self.ldapobj.directory[manager[0]]['objectClass'],
- ['posixAccount'])
-
-- def test_modify_s_delete_all_values_from_attribute(self):
-- mod_list = [(ldap.MOD_DELETE, 'objectClass', None)]
--
-- self.ldapobj.modify_s(manager[0], mod_list)
--
-- self.assertNotIn('objectClass',
-- self.ldapobj.directory[manager[0]].keys())
--
-- def test_modify_s_invalid_dn(self):
-- mod_list = [(ldap.MOD_DELETE, 'objectClass', None)]
--
-- with self.assertRaises(ldap.INVALID_DN_SYNTAX):
-- self.ldapobj.modify_s('invalid', mod_list)
--
- def test_rename_s_successful_code(self):
- result = self.ldapobj.rename_s('cn=alice,ou=example,o=test', 'uid=alice1')
-
diff --git a/dev-python/mockldap/files/mockldap-0.1.5-modify_s-backport.patch b/dev-python/mockldap/files/mockldap-0.1.5-modify_s-backport.patch
new file mode 100644
index 000000000000..c66c63890aec
--- /dev/null
+++ b/dev-python/mockldap/files/mockldap-0.1.5-modify_s-backport.patch
@@ -0,0 +1,21 @@
+# HG changeset patch
+# User Peter Sagerson <psagers.hg@ignorare.net>
+# Date 1392920906 28800
+# Node ID 6433fd7dc97473150114c06a90d189a62a39951f
+# Parent f298b032a25ef6c2bcc6749d9bf096352a49f37d
+Fix tests to match the recent modify_s change.
+
+diff --git a/src/mockldap/tests.py b/src/mockldap/tests.py
+--- a/src/mockldap/tests.py
++++ b/src/mockldap/tests.py
+@@ -453,8 +453,8 @@
+
+ self.ldapobj.modify_s(manager[0], mod_list)
+
+- self.assertNotIn('objectClass',
+- self.ldapobj.directory[manager[0]].keys())
++ self.assertEqual(self.ldapobj.directory[manager[0]]['objectClass'],
++ [])
+
+ def test_modify_s_invalid_dn(self):
+ mod_list = [(ldap.MOD_DELETE, 'objectClass', None)]
diff --git a/dev-python/mockldap/mockldap-0.1.4-r1.ebuild b/dev-python/mockldap/mockldap-0.1.5.ebuild
index be7b26ed9e96..00b11e5a5cfd 100644
--- a/dev-python/mockldap/mockldap-0.1.4-r1.ebuild
+++ b/dev-python/mockldap/mockldap-0.1.5.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-python/mockldap/mockldap-0.1.4-r1.ebuild,v 1.1 2014/02/20 07:30:41 jlec Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-python/mockldap/mockldap-0.1.5.ebuild,v 1.1 2014/02/21 08:52:14 jlec Exp $
EAPI=5