feat: Implement comprehensive Debian packaging improvements and enhanced CI workflow
Some checks failed
Comprehensive CI/CD Pipeline / Build and Test (push) Failing after 11s
Comprehensive CI/CD Pipeline / Security Audit (push) Failing after 12s
Comprehensive CI/CD Pipeline / Package Validation (push) Successful in 3m51s
Comprehensive CI/CD Pipeline / Status Report (push) Has been skipped
Some checks failed
Comprehensive CI/CD Pipeline / Build and Test (push) Failing after 11s
Comprehensive CI/CD Pipeline / Security Audit (push) Failing after 12s
Comprehensive CI/CD Pipeline / Package Validation (push) Successful in 3m51s
Comprehensive CI/CD Pipeline / Status Report (push) Has been skipped
- Enhanced Package Information: Expanded PackageInfo struct with 23 fields including section, priority, maintainer, homepage, size, dependencies, and more - Real Package Data Extraction: Integrated dpkg and apt-cache for actual package information instead of mock data - Professional Debian Packaging: Added man pages, shell completions, postinst/prerm scripts, triggers, and lintian overrides - Enhanced Build System: Improved debian/rules with cross-compilation support, enhanced build.sh with options and validation - CI Workflow Updates: Added missing build dependencies, enhanced package validation, lintian quality checks, and comprehensive reporting - Quality Assurance: Added lintian validation, enhanced file checking, and professional packaging standards - Documentation: Comprehensive README.Debian with build instructions and troubleshooting guide Resolves mock package issues and provides production-ready Debian packaging infrastructure.
This commit is contained in:
parent
176137be02
commit
f26ffe8607
21 changed files with 1590 additions and 152 deletions
72
debian/apt-ostree.bash-completion
vendored
Normal file
72
debian/apt-ostree.bash-completion
vendored
Normal file
|
|
@ -0,0 +1,72 @@
|
|||
# apt-ostree bash completion
|
||||
# Generated for apt-ostree version 0.1.0
|
||||
|
||||
_apt_ostree()
|
||||
{
|
||||
local cur prev opts cmds
|
||||
COMPREPLY=()
|
||||
cur="${COMP_WORDS[COMP_CWORD]}"
|
||||
prev="${COMP_WORDS[COMP_CWORD-1]}"
|
||||
|
||||
# Main commands
|
||||
cmds="info search install remove upgrade rollback status help version"
|
||||
|
||||
# Global options
|
||||
opts="--help --version --verbose --quiet --config --data-dir --log-level"
|
||||
|
||||
# If this is the first word, complete with commands
|
||||
if [[ ${COMP_CWORD} -eq 1 ]]; then
|
||||
COMPREPLY=( $(compgen -W "${cmds}" -- "${cur}") )
|
||||
return 0
|
||||
fi
|
||||
|
||||
# Handle command-specific completions
|
||||
case "${prev}" in
|
||||
info)
|
||||
# Complete with package names from APT cache
|
||||
if command -v apt-cache >/dev/null 2>&1; then
|
||||
local packages=$(apt-cache --no-generate pkgnames 2>/dev/null | grep -i "^${cur}" | head -20)
|
||||
COMPREPLY=( $(compgen -W "${packages}" -- "${cur}") )
|
||||
fi
|
||||
;;
|
||||
search)
|
||||
# Complete with common search terms
|
||||
local search_terms="package name description maintainer"
|
||||
COMPREPLY=( $(compgen -W "${search_terms}" -- "${cur}") )
|
||||
;;
|
||||
install|remove)
|
||||
# Complete with package names from APT cache
|
||||
if command -v apt-cache >/dev/null 2>&1; then
|
||||
local packages=$(apt-cache --no-generate pkgnames 2>/dev/null | grep -i "^${cur}" | head -20)
|
||||
COMPREPLY=( $(compgen -W "${packages}" -- "${cur}") )
|
||||
fi
|
||||
;;
|
||||
--config)
|
||||
# Complete with configuration files
|
||||
COMPREPLY=( $(compgen -f -X "!*.toml" -- "${cur}") )
|
||||
;;
|
||||
--data-dir)
|
||||
# Complete with directories
|
||||
COMPREPLY=( $(compgen -d -- "${cur}") )
|
||||
;;
|
||||
--log-level)
|
||||
# Complete with log levels
|
||||
local log_levels="trace debug info warn error"
|
||||
COMPREPLY=( $(compgen -W "${log_levels}" -- "${cur}") )
|
||||
;;
|
||||
*)
|
||||
# Complete with global options if not a command
|
||||
if [[ ${cur} == -* ]]; then
|
||||
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
||||
fi
|
||||
;;
|
||||
esac
|
||||
|
||||
return 0
|
||||
}
|
||||
|
||||
# Register the completion function
|
||||
complete -F _apt_ostree apt-ostree
|
||||
|
||||
# Also complete for the short alias if it exists
|
||||
complete -F _apt_ostree aost 2>/dev/null || true
|
||||
Loading…
Add table
Add a link
Reference in a new issue