diff options
Diffstat (limited to 'layman/overlays/cvs.py')
-rw-r--r-- | layman/overlays/cvs.py | 20 |
1 files changed, 2 insertions, 18 deletions
diff --git a/layman/overlays/cvs.py b/layman/overlays/cvs.py index bf54921..a8c6abb 100644 --- a/layman/overlays/cvs.py +++ b/layman/overlays/cvs.py @@ -47,25 +47,9 @@ class CvsOverlay(OverlaySource): def __init__(self, parent, config, _location, ignore = 0): super(CvsOverlay, self).__init__(parent, config, _location, ignore) - self.subpath = None + self.branch = None - def __eq__(self, other): - res = super(CvsOverlay, self).__eq__(other) \ - and self.subpath == other.subpath - return res - - def __ne__(self, other): - return not self.__eq__(other) - - # overrider - def to_xml_hook(self, repo_elem): - if self.subpath: - _subpath = ET.Element('subpath') - _subpath.text = self.subpath - repo_elem.append(_subpath) - del _subpath - def add(self, base): '''Add overlay.''' @@ -84,7 +68,7 @@ class CvsOverlay(OverlaySource): if len(cfg_opts): args.append(cfg_opts) args.append(self.parent.name) - args.append(self.subpath) + args.append(self.branch) return self.postsync( self.run_command(self.command(), args, cwd=base, |