summaryrefslogtreecommitdiffstats
path: root/layman/overlays/rsync.py
diff options
context:
space:
mode:
Diffstat (limited to 'layman/overlays/rsync.py')
-rw-r--r--layman/overlays/rsync.py11
1 files changed, 8 insertions, 3 deletions
diff --git a/layman/overlays/rsync.py b/layman/overlays/rsync.py
index 18d563f..0f6c5f5 100644
--- a/layman/overlays/rsync.py
+++ b/layman/overlays/rsync.py
@@ -44,7 +44,7 @@ class RsyncOverlay(Overlay):
'--timeout=180 --exclude="distfiles/*" --exclude="local/*" ' + \
'--exclude="packages/*" '
- def add(self, base):
+ def add(self, base, quiet = False):
'''Add overlay.'''
self.supported()
@@ -53,12 +53,17 @@ class RsyncOverlay(Overlay):
return self.sync(base)
- def sync(self, base):
+ def sync(self, base, quiet = False):
'''Sync overlay.'''
self.supported()
- return self.cmd(self.base + '"' + self.src + '/" "' +
+ if quiet:
+ quiet_option = '-q '
+ else:
+ quiet_option = ''
+
+ return self.cmd(self.base + quiet_option + '"' + self.src + '/" "' +
path([base, self.name]) + '"')
def supported(self):