summaryrefslogtreecommitdiffstats
path: root/layman/overlays/cvs.py
diff options
context:
space:
mode:
Diffstat (limited to 'layman/overlays/cvs.py')
-rw-r--r--layman/overlays/cvs.py9
1 files changed, 6 insertions, 3 deletions
diff --git a/layman/overlays/cvs.py b/layman/overlays/cvs.py
index d2bf5d3..5c8d376 100644
--- a/layman/overlays/cvs.py
+++ b/layman/overlays/cvs.py
@@ -26,7 +26,7 @@ __version__ = "$Id$"
import xml.etree.ElementTree as ET # Python 2.5
-from layman.utils import path
+from layman.utils import path, ensure_unicode
from layman.overlays.overlay import Overlay
#===============================================================================
@@ -45,8 +45,11 @@ class CvsOverlay(Overlay):
Overlay.__init__(self, xml, config, ignore, quiet)
- if 'subpath' in xml.attrib:
- self.subpath = xml.attrib['subpath']
+ _subpath = xml.find('subpath')
+ if _subpath != None:
+ self.subpath = ensure_unicode(_subpath.text.strip())
+ elif 'subpath' in xml.attrib:
+ self.subpath = ensure_unicode(xml.attrib['subpath'])
else:
self.subpath = ''