rdiff-backup-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Rdiff-backup-commits] Changes to rdiff-backup/rdiff_backup/eas_acls.py


From: dean gaudet
Subject: [Rdiff-backup-commits] Changes to rdiff-backup/rdiff_backup/eas_acls.py
Date: Tue, 28 Jun 2005 01:07:18 -0400

Index: rdiff-backup/rdiff_backup/eas_acls.py
diff -u rdiff-backup/rdiff_backup/eas_acls.py:1.9 
rdiff-backup/rdiff_backup/eas_acls.py:1.10
--- rdiff-backup/rdiff_backup/eas_acls.py:1.9   Sun Jun 19 19:44:38 2005
+++ rdiff-backup/rdiff_backup/eas_acls.py       Tue Jun 28 05:07:18 2005
@@ -47,9 +47,9 @@
                else: self.attr_dict = attr_dict
 
        def __eq__(self, ea):
-               """Equal if all attributes and index are equal"""
+               """Equal if all attributes are equal"""
                assert isinstance(ea, ExtendedAttributes)
-               return ea.index == self.index and ea.attr_dict == self.attr_dict
+               return ea.attr_dict == self.attr_dict
        def __ne__(self, ea): return not self.__eq__(ea)
 
        def get_indexpath(self): return self.index and '/'.join(self.index) or 
'.'
@@ -292,7 +292,6 @@
 
                """
                assert isinstance(acl, self.__class__)
-               if self.index != acl.index: return 0
                if self.is_basic(): return acl.is_basic()
                return (self.cmp_entry_list(self.entry_list, acl.entry_list) and
                                self.cmp_entry_list(self.default_entry_list,
@@ -302,9 +301,6 @@
        
        def eq_verbose(self, acl):
                """Returns same as __eq__ but print explanation if not equal"""
-               if self.index != acl.index:
-                       print "index %s not equal to index %s" % (self.index, 
acl.index)
-                       return 0
                if not self.cmp_entry_list(self.entry_list, acl.entry_list):
                        print "ACL entries for %s compare differently" % 
(self.index,)
                        return 0




reply via email to

[Prev in Thread] Current Thread [Next in Thread]