diff options
Diffstat (limited to 'layman/overlays/cvs.py')
-rw-r--r-- | layman/overlays/cvs.py | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/layman/overlays/cvs.py b/layman/overlays/cvs.py index a9c4f0f..d2bf5d3 100644 --- a/layman/overlays/cvs.py +++ b/layman/overlays/cvs.py @@ -24,6 +24,8 @@ __version__ = "$Id$" # #------------------------------------------------------------------------------- +import xml.etree.ElementTree as ET # Python 2.5 + from layman.utils import path from layman.overlays.overlay import Overlay @@ -56,6 +58,15 @@ class CvsOverlay(Overlay): def __ne__(self, other): return not self.__eq__(other) + # overrider + def to_xml(self): + repo = super(CvsOverlay, self).to_xml() + if self.subpath: + _subpath = ET.Element('subpath') + _subpath.text = self.subpath + repo.append(_subpath) + return repo + def add(self, base, quiet = False): '''Add overlay.''' |