euscanwww: Changed Layman sync task to use Python API

Signed-off-by: volpino <fox91@anche.no>
This commit is contained in:
volpino 2012-06-05 12:46:22 +02:00
parent c41521d59f
commit 8ed74a74df

View File

@ -117,8 +117,12 @@ def emerge_sync():
@task
def layman_sync():
cmd = ["layman", "-S", "--config", settings.LAYMAN_CONFIG]
return _launch_command(cmd)
from layman import Layman
results = []
l = Layman()
for overlay in l.get_installed():
results.append(l.sync(overlay, output_results=False))
return results
@task