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
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user