diff options
author | Sebastian Pipping <sebastian@pipping.org> | 2010-01-13 02:38:44 +0100 |
---|---|---|
committer | Sebastian Pipping <sebastian@pipping.org> | 2010-01-13 02:47:29 +0100 |
commit | 2a14ba6689f6104601533d0677fb9211a35c96e0 (patch) | |
tree | c51921ddd2e0885a3d599de6665d48a2fa849ae7 /layman/overlays/svn.py | |
parent | Move a few methods down from Overlay to OverlaySource (diff) | |
download | layman-2a14ba6689f6104601533d0677fb9211a35c96e0.tar.gz layman-2a14ba6689f6104601533d0677fb9211a35c96e0.tar.bz2 layman-2a14ba6689f6104601533d0677fb9211a35c96e0.zip |
Add support for multiple sources per overlay
Diffstat (limited to 'layman/overlays/svn.py')
-rw-r--r-- | layman/overlays/svn.py | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/layman/overlays/svn.py b/layman/overlays/svn.py index f031006..22b57e4 100644 --- a/layman/overlays/svn.py +++ b/layman/overlays/svn.py @@ -25,7 +25,6 @@ __version__ = "$Id: svn.py 236 2006-09-05 20:39:37Z wrobel $" #------------------------------------------------------------------------------- from layman.utils import path -from layman.overlays.overlay import Overlay from layman.overlays.source import OverlaySource #=============================================================================== @@ -40,9 +39,9 @@ class SvnOverlay(OverlaySource): type = 'Subversion' type_key = 'svn' - def __init__(self, xml, config, ignore = 0, quiet = False): + def __init__(self, parent, xml, config, _location, ignore = 0, quiet = False): - super(SvnOverlay, self).__init__(xml, config, ignore) + super(SvnOverlay, self).__init__(parent, xml, config, _location, ignore, quiet) def add(self, base, quiet = False): '''Add overlay.''' @@ -57,7 +56,7 @@ class SvnOverlay(OverlaySource): quiet_option = '' return self.cmd(self.command() + ' co ' + quiet_option + - '"' + self.src + '/@" "' + path([base, self.name]) + '"') + '"' + self.src + '/@" "' + path([base, self.parent.name]) + '"') def sync(self, base, quiet = False): '''Sync overlay.''' @@ -70,7 +69,7 @@ class SvnOverlay(OverlaySource): quiet_option = '' return self.cmd(self.command() + ' up ' + quiet_option + - '"' + path([base, self.name + '@']) + '"') + '"' + path([base, self.parent.name + '@']) + '"') def supported(self): '''Overlay type supported?''' |