diff options
author | volpino <fox91@anche.no> | 2012-06-05 12:46:22 +0200 |
---|---|---|
committer | volpino <fox91@anche.no> | 2012-06-05 12:46:22 +0200 |
commit | 8ed74a74dfe1484d402146b391e769347ab56cbd (patch) | |
tree | b9e7eea68ed9e2ca7d4d3fdc62de82f4d5133d3e /euscanwww/djeuscan/tasks.py | |
parent | euscanwww: Admin interface tweaks (diff) | |
download | euscan-8ed74a74dfe1484d402146b391e769347ab56cbd.tar.gz euscan-8ed74a74dfe1484d402146b391e769347ab56cbd.tar.bz2 euscan-8ed74a74dfe1484d402146b391e769347ab56cbd.zip |
euscanwww: Changed Layman sync task to use Python API
Signed-off-by: volpino <fox91@anche.no>
Diffstat (limited to 'euscanwww/djeuscan/tasks.py')
-rw-r--r-- | euscanwww/djeuscan/tasks.py | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/euscanwww/djeuscan/tasks.py b/euscanwww/djeuscan/tasks.py index 2f36f95..a112a26 100644 --- a/euscanwww/djeuscan/tasks.py +++ b/euscanwww/djeuscan/tasks.py @@ -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 |