euscanwww: Changed Layman sync task to use Python API
Signed-off-by: volpino <fox91@anche.no>
This commit is contained in:
		@@ -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
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user