mirror of
https://git.proxmox.com/git/fwupd
synced 2025-07-25 08:31:56 +00:00
trivial: Blacken Python source files
This commit is contained in:
parent
7013c41bb4
commit
2551862c81
@ -10,6 +10,7 @@ import sys
|
||||
import shutil
|
||||
from generate_dependencies import parse_dependencies
|
||||
|
||||
|
||||
def get_container_cmd():
|
||||
'''return docker or podman as container manager'''
|
||||
|
||||
|
@ -62,13 +62,16 @@ def parse_args():
|
||||
help="Reinstall payloads(default False)",
|
||||
)
|
||||
parser.add_argument(
|
||||
"command", choices=["get-devices", "get-details", "install", "refresh"], help="What to do"
|
||||
"command",
|
||||
choices=["get-devices", "get-details", "install", "refresh"],
|
||||
help="What to do",
|
||||
)
|
||||
parser.add_argument('cab', nargs='?', help='CAB file')
|
||||
parser.add_argument('deviceid', nargs='?', help='DeviceID to operate on(optional)')
|
||||
args = parser.parse_args()
|
||||
return args
|
||||
|
||||
|
||||
def refresh(client):
|
||||
"""Uses fwupd client to refresh metadata"""
|
||||
remotes = client.get_remotes()
|
||||
@ -80,6 +83,7 @@ def refresh(client):
|
||||
continue
|
||||
client.refresh_remote(remote)
|
||||
|
||||
|
||||
def get_devices(client):
|
||||
"""Use fwupd client to fetch devices"""
|
||||
devices = client.get_devices()
|
||||
|
Loading…
Reference in New Issue
Block a user