summaryrefslogtreecommitdiffstats
path: root/layman/overlays/mercurial.py
diff options
context:
space:
mode:
Diffstat (limited to 'layman/overlays/mercurial.py')
-rw-r--r--layman/overlays/mercurial.py8
1 files changed, 3 insertions, 5 deletions
diff --git a/layman/overlays/mercurial.py b/layman/overlays/mercurial.py
index 9e0c5e7..daa686c 100644
--- a/layman/overlays/mercurial.py
+++ b/layman/overlays/mercurial.py
@@ -40,8 +40,6 @@ class MercurialOverlay(Overlay):
type = 'Mercurial'
type_key = 'mercurial'
- binary_command = '/usr/bin/hg'
-
def __init__(self, xml, config, ignore = 0, quiet = False):
Overlay.__init__(self, xml, config, ignore)
@@ -51,7 +49,7 @@ class MercurialOverlay(Overlay):
self.supported()
- return self.cmd(self.binary_command + ' clone "' + self.src + '/" "' +
+ return self.cmd(self.command() + ' clone "' + self.src + '/" "' +
path([base, self.name]) + '"')
def sync(self, base, quiet = False):
@@ -60,10 +58,10 @@ class MercurialOverlay(Overlay):
self.supported()
return self.cmd('cd "' + path([base, self.name]) + '" && ' +
- self.binary_command + ' pull -u "' + self.src + '"')
+ self.command() + ' pull -u "' + self.src + '"')
def supported(self):
'''Overlay type supported?'''
- return Overlay.supported(self, [(self.binary_command, 'mercurial',
+ return Overlay.supported(self, [(self.command(), 'mercurial',
'dev-util/mercurial'),])