euscanwww: Changed Layman sync task to use Python API
Signed-off-by: volpino <fox91@anche.no>
This commit is contained in:
parent
c41521d59f
commit
8ed74a74df
@ -117,8 +117,12 @@ def emerge_sync():
|
|||||||
|
|
||||||
@task
|
@task
|
||||||
def layman_sync():
|
def layman_sync():
|
||||||
cmd = ["layman", "-S", "--config", settings.LAYMAN_CONFIG]
|
from layman import Layman
|
||||||
return _launch_command(cmd)
|
results = []
|
||||||
|
l = Layman()
|
||||||
|
for overlay in l.get_installed():
|
||||||
|
results.append(l.sync(overlay, output_results=False))
|
||||||
|
return results
|
||||||
|
|
||||||
|
|
||||||
@task
|
@task
|
||||||
|
Loading…
Reference in New Issue
Block a user