Skip to content

📝 Add docstrings to main #7991

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 23 additions & 1 deletion lib/functions/bsp/armbian-bsp-cli-deb.sh
Original file line number Diff line number Diff line change
@@ -250,7 +250,29 @@ function compile_armbian-bsp-cli() {
}

# Reversion function is called with the following parameters:
# ${1} == deb_id
# Updates control file metadata and version information for the armbian-bsp-cli Debian package reversion.
#
# Globals:
# REVISION - The target package version/revision used in control file entries.
# control_file_new - The file to which package metadata is appended.
# data_dir - Directory containing package data; must be set.
# KEEP_ORIGINAL_OS_RELEASE - Flag determining whether to include base-files dependency.
# SHOW_DEBUG - If "yes", enables output of debug information.
# BOARD, EXTRA_BSP_NAME - Identifiers used to form package names in metadata.
#
# Arguments:
# $1 - Package identifier; the function proceeds only if this equals "armbian-bsp-cli".
#
# Outputs:
# Appends dependency, replacement, breaking, and provides fields to the package control file.
# Updates the armbian-release file with the current VERSION and REVISION.
# Optionally displays the updated release file if debug output is enabled.
#
# Returns:
# 0 on success or if the package identifier does not match "armbian-bsp-cli".
#
# Example:
# reversion_armbian-bsp-cli_deb_contents "armbian-bsp-cli"
function reversion_armbian-bsp-cli_deb_contents() {
if [[ "${1}" != "armbian-bsp-cli" ]]; then
return 0 # Not our deb, nothing to do.