first
This commit is contained in:
9
calamares/ci/libcalamares/__init__.py
Normal file
9
calamares/ci/libcalamares/__init__.py
Normal file
@@ -0,0 +1,9 @@
|
||||
# SPDX-FileCopyrightText: no
|
||||
# SPDX-License-Identifier: CC0-1.0
|
||||
#
|
||||
# Stubs for part of the Python API from libcalamares
|
||||
# (although the **actual** API is presented through
|
||||
# Boost::Python, not as a bare C-extension) so that
|
||||
# pylint doesn't complain about libcalamares internals.
|
||||
|
||||
VERSION_SHORT="1.0"
|
||||
24
calamares/ci/libcalamares/globalstorage.py
Normal file
24
calamares/ci/libcalamares/globalstorage.py
Normal file
@@ -0,0 +1,24 @@
|
||||
# SPDX-FileCopyrightText: no
|
||||
# SPDX-License-Identifier: CC0-1.0
|
||||
#
|
||||
# Stubs for part of the Python API from libcalamares
|
||||
# (although the **actual** API is presented through
|
||||
# Boost::Python, not as a bare C-extension) so that
|
||||
# pylint doesn't complain about libcalamares internals.
|
||||
|
||||
def count(): return 1
|
||||
|
||||
def keys(): return []
|
||||
|
||||
def contains(_): return True
|
||||
|
||||
def value(key):
|
||||
if key in ("branding",):
|
||||
return dict()
|
||||
if key in ("partitions",):
|
||||
return list()
|
||||
return ""
|
||||
|
||||
def insert(key, value): pass
|
||||
|
||||
def remove(_): pass
|
||||
15
calamares/ci/libcalamares/job.py
Normal file
15
calamares/ci/libcalamares/job.py
Normal file
@@ -0,0 +1,15 @@
|
||||
# SPDX-FileCopyrightText: no
|
||||
# SPDX-License-Identifier: CC0-1.0
|
||||
#
|
||||
# Stubs for part of the Python API from libcalamares
|
||||
# (although the **actual** API is presented through
|
||||
# Boost::Python, not as a bare C-extension) so that
|
||||
# pylint doesn't complain about libcalamares internals.
|
||||
|
||||
configuration = dict()
|
||||
|
||||
def setprogress(_): pass
|
||||
|
||||
def pretty_name(): return ""
|
||||
|
||||
def working_path(): return ""
|
||||
27
calamares/ci/libcalamares/utils.py
Normal file
27
calamares/ci/libcalamares/utils.py
Normal file
@@ -0,0 +1,27 @@
|
||||
# SPDX-FileCopyrightText: no
|
||||
# SPDX-License-Identifier: CC0-1.0
|
||||
#
|
||||
# Stubs for part of the Python API from libcalamares
|
||||
# (although the **actual** API is presented through
|
||||
# Boost::Python, not as a bare C-extension) so that
|
||||
# pylint doesn't complain about libcalamares internals.
|
||||
|
||||
def debug(_): pass
|
||||
|
||||
def warning(_): pass
|
||||
|
||||
def error(_): pass
|
||||
|
||||
def gettext_path(): pass
|
||||
|
||||
def gettext_languages(): pass
|
||||
|
||||
def target_env_call(_): return 0
|
||||
|
||||
def check_target_env_call(_): pass
|
||||
|
||||
def target_env_process_output(cmd, *args): return 0
|
||||
|
||||
def host_env_process_output(cmd, *args): return 0
|
||||
|
||||
def mount(device, mountpoint, fstype, options): return 0
|
||||
Reference in New Issue
Block a user