47 lines
2.2 KiB
Python
47 lines
2.2 KiB
Python
# -*- coding: utf-8 -*-
|
|
"""
|
|
SPDX-FileCopyrightText: 2023-2025 PeppermintOS Team
|
|
(peppermintosteam@proton.me)
|
|
|
|
SPDX-License-Identifier: GPL-3.0-or-later
|
|
|
|
This module defines a dictionary containing the paths to the XBPS package management tool commands
|
|
used in the Void Linux system, as well as other tools related to the ISO building process.
|
|
|
|
The purpose of this module is to centralize the definition of these commands, making it easier to maintain
|
|
and configure should the paths of these tools need to be changed in the future.
|
|
|
|
Credits:
|
|
- PeppermintOS Team (peppermintosteam@proton.me) - Development and maintenance of the project.
|
|
|
|
License:
|
|
This code is distributed under the GNU General Public License version 3 or later (GPL-3.0-or-later).
|
|
For more details, please refer to the LICENSE file included in the project or visit:
|
|
https://www.gnu.org/licenses/gpl-3.0.html
|
|
"""
|
|
|
|
xbps_commands = {
|
|
"XBPS_INSTALL_CMD": "xbps-install",
|
|
"XBPS_REMOVE_CMD": "xbps-remove",
|
|
"XBPS_QUERY_CMD": "xbps-query",
|
|
"XBPS_RINDEX_CMD": "xbps-rindex",
|
|
"XBPS_UHELPER_CMD": "xbps-uhelper",
|
|
"XBPS_RECONFIGURE_CMD": "xbps-reconfigure",
|
|
"XBPS_ALTERNATIVES_CMD": "xbps-alternatives",
|
|
"DRACUT_CMD": "/usr/bin/dracut"
|
|
}
|
|
"""
|
|
A dictionary that maps symbolic names to the absolute paths of XBPS commands and other related tools.
|
|
|
|
The keys represent the symbolic names of the commands, while the values are the absolute paths to these executables on the system.
|
|
|
|
Keys:
|
|
XBPS_INSTALL_CMD (str): Path to the xbps-install command (used for installing packages).
|
|
XBPS_REMOVE_CMD (str): Path to the xbps-remove command (used for removing packages).
|
|
XBPS_QUERY_CMD (str): Path to the xbps-query command (used for querying package information).
|
|
XBPS_RINDEX_CMD (str): Path to the xbps-rindex command (used for creating repository indices).
|
|
XBPS_UHELPER_CMD (str): Path to the xbps-uhelper command (XBPS helper utility).
|
|
XBPS_RECONFIGURE_CMD (str): Path to the xbps-reconfigure command (used for reconfiguring packages).
|
|
XBPS_ALTERNATIVES_CMD (str): Path to the xbps-alternatives command (used for managing alternative symbolic links).
|
|
DRACUT_CMD (str): Path to the dracut command (used for building initramfs images).
|
|
""" |