summaryrefslogtreecommitdiffstats
path: root/layman/overlays/tar.py
diff options
context:
space:
mode:
Diffstat (limited to 'layman/overlays/tar.py')
-rw-r--r--layman/overlays/tar.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/layman/overlays/tar.py b/layman/overlays/tar.py
index 2ef69af..d65befc 100644
--- a/layman/overlays/tar.py
+++ b/layman/overlays/tar.py
@@ -88,6 +88,16 @@ class TarOverlay(Overlay):
else:
self.category = ''
+ def __eq__(self, other):
+ res = super(TarOverlay, self).__eq__(other) \
+ and self.format == other.format \
+ and self.subpath == other.subpath \
+ and self.category == other.category
+ return res
+
+ def __ne__(self, other):
+ return not self.__eq__(other)
+
def add(self, base, quiet = False):
'''Add overlay.'''