mirror of
https://github.com/arcan1s/ahriman.git
synced 2026-08-20 15:27:26 +00:00
Compare commits
16
Commits
7a2d8299ad
..
2.21.1
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
2eb51ba85a | ||
|
|
36e28aba99 | ||
|
|
81c9e1e596 | ||
|
|
2693f789d0 | ||
|
|
08ade0b425 | ||
|
|
c648f91662 | ||
|
|
20482cb137 | ||
|
|
70829619a1 | ||
|
|
dd659820da | ||
|
|
e835668f7d | ||
|
|
526edfe2cd | ||
|
|
a4a7c13344 | ||
|
|
fd6add46f9 | ||
|
|
700893ecac | ||
|
|
f12278a31d | ||
|
|
3492892cd2 |
@@ -0,0 +1,5 @@
|
|||||||
|
[tool.bandit]
|
||||||
|
skips = [
|
||||||
|
"B404",
|
||||||
|
"B603",
|
||||||
|
]
|
||||||
@@ -1,3 +0,0 @@
|
|||||||
skips:
|
|
||||||
- B404
|
|
||||||
- B603
|
|
||||||
@@ -26,10 +26,10 @@ cp "docker/systemd-nspawn.sh" "/usr/local/bin/systemd-nspawn"
|
|||||||
# create fresh tarball
|
# create fresh tarball
|
||||||
tox -e archive
|
tox -e archive
|
||||||
# run makepkg
|
# run makepkg
|
||||||
PKGVER=$(python -c "from src.ahriman import __version__; print(__version__)")
|
PKGVER=$(PYTHONPATH=ahriman-core/src python -c "from ahriman import __version__; print(__version__)")
|
||||||
mv "dist/ahriman-$PKGVER.tar.gz" package/archlinux
|
mv "dist/ahriman-$PKGVER.tar.gz" archlinux
|
||||||
chmod +777 package/archlinux # because fuck you that's why
|
chmod +777 archlinux # because fuck you that's why
|
||||||
cd package/archlinux
|
cd archlinux
|
||||||
sudo -u nobody -- makepkg -cf --skipchecksums --noconfirm
|
sudo -u nobody -- makepkg -cf --skipchecksums --noconfirm
|
||||||
sudo -u nobody -- makepkg --packagelist | grep "ahriman-core-$PKGVER" | pacman -U --noconfirm --nodeps -
|
sudo -u nobody -- makepkg --packagelist | grep "ahriman-core-$PKGVER" | pacman -U --noconfirm --nodeps -
|
||||||
if [[ -z $MINIMAL_INSTALL ]]; then
|
if [[ -z $MINIMAL_INSTALL ]]; then
|
||||||
@@ -28,7 +28,7 @@ jobs:
|
|||||||
|
|
||||||
- name: Set image date
|
- name: Set image date
|
||||||
id: args
|
id: args
|
||||||
run: echo "::set-output name=date::$(date -d yesterday +'%Y-%m-%d')"
|
run: echo "date=$(date -d yesterday +'%Y-%m-%d')" >> "$GITHUB_OUTPUT"
|
||||||
|
|
||||||
- name: Login to docker hub
|
- name: Login to docker hub
|
||||||
uses: docker/login-action@v3
|
uses: docker/login-action@v3
|
||||||
|
|||||||
@@ -26,7 +26,7 @@ jobs:
|
|||||||
|
|
||||||
- name: Extract version
|
- name: Extract version
|
||||||
id: version
|
id: version
|
||||||
run: echo ::set-output name=VERSION::${GITHUB_REF#refs/tags/}
|
run: echo "version=${GITHUB_REF#refs/tags/}" >> "$GITHUB_OUTPUT"
|
||||||
|
|
||||||
- name: Create changelog
|
- name: Create changelog
|
||||||
id: changelog
|
id: changelog
|
||||||
@@ -38,7 +38,7 @@ jobs:
|
|||||||
- name: Create archive
|
- name: Create archive
|
||||||
run: tox -e archive
|
run: tox -e archive
|
||||||
env:
|
env:
|
||||||
VERSION: ${{ steps.version.outputs.VERSION }}
|
VERSION: ${{ steps.version.outputs.version }}
|
||||||
|
|
||||||
- name: Publish release
|
- name: Publish release
|
||||||
uses: softprops/action-gh-release@v2
|
uses: softprops/action-gh-release@v2
|
||||||
|
|||||||
@@ -27,7 +27,7 @@ jobs:
|
|||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Setup the minimal service in arch linux container
|
- name: Setup the minimal service in arch linux container
|
||||||
run: .github/workflows/setup.sh minimal
|
run: .github/scripts/setup.sh minimal
|
||||||
|
|
||||||
run-setup:
|
run-setup:
|
||||||
|
|
||||||
@@ -43,4 +43,4 @@ jobs:
|
|||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Setup the service in arch linux container
|
- name: Setup the service in arch linux container
|
||||||
run: .github/workflows/setup.sh
|
run: .github/scripts/setup.sh
|
||||||
|
|||||||
@@ -1,7 +0,0 @@
|
|||||||
[pytest]
|
|
||||||
addopts = --cov=ahriman --cov-report=term-missing:skip-covered --no-cov-on-fail --cov-fail-under=100 --spec
|
|
||||||
asyncio_default_fixture_loop_scope = function
|
|
||||||
asyncio_mode = auto
|
|
||||||
pythonpath = tests
|
|
||||||
resource-path.directory-name-test-resources = ../../tests/testresources
|
|
||||||
spec_test_format = {result} {docstring_summary}
|
|
||||||
@@ -0,0 +1,8 @@
|
|||||||
|
[pytest]
|
||||||
|
addopts = [
|
||||||
|
"--spec",
|
||||||
|
]
|
||||||
|
asyncio_default_fixture_loop_scope = "function"
|
||||||
|
asyncio_mode = "auto"
|
||||||
|
"resource-path.directory-name-test-resources" = "../../tests/testresources"
|
||||||
|
spec_test_format = "{result} {docstring_summary}"
|
||||||
+4
-1
@@ -3,13 +3,16 @@ version: 2
|
|||||||
build:
|
build:
|
||||||
os: ubuntu-lts-latest
|
os: ubuntu-lts-latest
|
||||||
tools:
|
tools:
|
||||||
python: "3.13"
|
python: "3.14"
|
||||||
apt_packages:
|
apt_packages:
|
||||||
- graphviz
|
- graphviz
|
||||||
|
|
||||||
python:
|
python:
|
||||||
install:
|
install:
|
||||||
- requirements: docs/requirements.txt
|
- requirements: docs/requirements.txt
|
||||||
|
- path: ahriman-core
|
||||||
|
- path: ahriman-triggers
|
||||||
|
- path: ahriman-web
|
||||||
|
|
||||||
formats:
|
formats:
|
||||||
- pdf
|
- pdf
|
||||||
|
|||||||
@@ -42,6 +42,8 @@ retry_backoff = 1.0
|
|||||||
;include_debug_packages = yes
|
;include_debug_packages = yes
|
||||||
; List of additional flags passed to makechrootpkg command.
|
; List of additional flags passed to makechrootpkg command.
|
||||||
;makechrootpkg_flags =
|
;makechrootpkg_flags =
|
||||||
|
; Minimal age in seconds since the latest AUR package modification before automatic updates are allowed.
|
||||||
|
;min_age = 0
|
||||||
; List of additional flags passed to makepkg command.
|
; List of additional flags passed to makepkg command.
|
||||||
makepkg_flags = --nocolor --ignorearch
|
makepkg_flags = --nocolor --ignorearch
|
||||||
; List of paths to be used for implicit dependency scan. Regular expressions are supported.
|
; List of paths to be used for implicit dependency scan. Regular expressions are supported.
|
||||||
|
|||||||
@@ -1,9 +1,9 @@
|
|||||||
# AUTOMATICALLY GENERATED by `shtab`
|
# AUTOMATICALLY GENERATED by `shtab`
|
||||||
|
|
||||||
_shtab_ahriman_subparsers=('add' 'aur-search' 'check' 'clean' 'config' 'config-validate' 'copy' 'daemon' 'help' 'help-commands-unsafe' 'help-updates' 'help-version' 'init' 'key-import' 'package-add' 'package-changes' 'package-changes-remove' 'package-copy' 'package-remove' 'package-status' 'package-status-remove' 'package-status-update' 'package-update' 'patch-add' 'patch-list' 'patch-remove' 'patch-set-add' 'rebuild' 'remove' 'remove-unknown' 'repo-backup' 'repo-check' 'repo-clean' 'repo-config' 'repo-config-validate' 'repo-create-keyring' 'repo-create-mirrorlist' 'repo-daemon' 'repo-init' 'repo-rebuild' 'repo-remove-unknown' 'repo-report' 'repo-restore' 'repo-setup' 'repo-sign' 'repo-statistics' 'repo-status-update' 'repo-sync' 'repo-tree' 'repo-triggers' 'repo-update' 'report' 'run' 'search' 'service-clean' 'service-config' 'service-config-validate' 'service-key-import' 'service-repositories' 'service-run' 'service-setup' 'service-shell' 'service-tree-migrate' 'setup' 'shell' 'sign' 'status' 'status-update' 'sync' 'update' 'user-add' 'user-list' 'user-remove' 'version' 'web' 'web-reload')
|
_shtab_ahriman_subparsers=('add' 'aur-search' 'check' 'clean' 'config' 'config-validate' 'copy' 'daemon' 'help' 'help-commands-unsafe' 'help-updates' 'help-version' 'init' 'key-import' 'package-add' 'package-archives' 'package-changes' 'package-changes-remove' 'package-copy' 'package-hold' 'package-pkgbuild' 'package-pkgbuild-remove' 'package-remove' 'package-rollback' 'package-status' 'package-status-remove' 'package-status-update' 'package-unhold' 'package-update' 'patch-add' 'patch-list' 'patch-remove' 'patch-set-add' 'rebuild' 'remove' 'remove-unknown' 'repo-backup' 'repo-check' 'repo-clean' 'repo-config' 'repo-config-validate' 'repo-create-keyring' 'repo-create-mirrorlist' 'repo-daemon' 'repo-init' 'repo-rebuild' 'repo-remove-unknown' 'repo-report' 'repo-restore' 'repo-setup' 'repo-sign' 'repo-statistics' 'repo-status-update' 'repo-sync' 'repo-tree' 'repo-triggers' 'repo-update' 'report' 'run' 'search' 'service-clean' 'service-config' 'service-config-validate' 'service-key-import' 'service-repositories' 'service-run' 'service-setup' 'service-shell' 'service-tree-migrate' 'setup' 'shell' 'sign' 'status' 'status-update' 'sync' 'update' 'user-add' 'user-list' 'user-remove' 'version' 'web' 'web-reload')
|
||||||
|
|
||||||
_shtab_ahriman_option_strings=('-h' '--help' '-a' '--architecture' '-c' '--configuration' '--force' '-l' '--lock' '--log-handler' '-q' '--quiet' '--report' '--no-report' '-r' '--repository' '--unsafe' '-V' '--version' '--wait-timeout')
|
_shtab_ahriman_option_strings=('-h' '--help' '-a' '--architecture' '-c' '--configuration' '--force' '-l' '--lock' '--log-handler' '-q' '--quiet' '--report' '--no-report' '-r' '--repository' '--unsafe' '-V' '--version' '--wait-timeout')
|
||||||
_shtab_ahriman_add_option_strings=('-h' '--help' '--changes' '--no-changes' '--dependencies' '--no-dependencies' '-e' '--exit-code' '--increment' '--no-increment' '-n' '--now' '-y' '--refresh' '-s' '--source' '-u' '--username' '-v' '--variable')
|
_shtab_ahriman_add_option_strings=('-h' '--help' '--changes' '--no-changes' '--dependencies' '--no-dependencies' '-e' '--exit-code' '--increment' '--no-increment' '-n' '--now' '-s' '--source' '-u' '--username' '-v' '--variable' '-y' '--refresh')
|
||||||
_shtab_ahriman_aur_search_option_strings=('-h' '--help' '-e' '--exit-code' '--info' '--no-info' '--sort-by')
|
_shtab_ahriman_aur_search_option_strings=('-h' '--help' '-e' '--exit-code' '--info' '--no-info' '--sort-by')
|
||||||
_shtab_ahriman_check_option_strings=('-h' '--help' '--changes' '--no-changes' '--check-files' '--no-check-files' '-e' '--exit-code' '--vcs' '--no-vcs' '-y' '--refresh')
|
_shtab_ahriman_check_option_strings=('-h' '--help' '--changes' '--no-changes' '--check-files' '--no-check-files' '-e' '--exit-code' '--vcs' '--no-vcs' '-y' '--refresh')
|
||||||
_shtab_ahriman_clean_option_strings=('-h' '--help' '--cache' '--no-cache' '--chroot' '--no-chroot' '--manual' '--no-manual' '--packages' '--no-packages' '--pacman' '--no-pacman')
|
_shtab_ahriman_clean_option_strings=('-h' '--help' '--cache' '--no-cache' '--chroot' '--no-chroot' '--manual' '--no-manual' '--packages' '--no-packages' '--pacman' '--no-pacman')
|
||||||
@@ -17,15 +17,21 @@ _shtab_ahriman_help_updates_option_strings=('-h' '--help' '-e' '--exit-code')
|
|||||||
_shtab_ahriman_help_version_option_strings=('-h' '--help')
|
_shtab_ahriman_help_version_option_strings=('-h' '--help')
|
||||||
_shtab_ahriman_init_option_strings=('-h' '--help' '--build-as-user' '--from-configuration' '--generate-salt' '--no-generate-salt' '--makeflags-jobs' '--no-makeflags-jobs' '--mirror' '--multilib' '--no-multilib' '--packager' '--server' '--sign-key' '--sign-target' '--web-port' '--web-unix-socket')
|
_shtab_ahriman_init_option_strings=('-h' '--help' '--build-as-user' '--from-configuration' '--generate-salt' '--no-generate-salt' '--makeflags-jobs' '--no-makeflags-jobs' '--mirror' '--multilib' '--no-multilib' '--packager' '--server' '--sign-key' '--sign-target' '--web-port' '--web-unix-socket')
|
||||||
_shtab_ahriman_key_import_option_strings=('-h' '--help' '--key-server')
|
_shtab_ahriman_key_import_option_strings=('-h' '--help' '--key-server')
|
||||||
_shtab_ahriman_package_add_option_strings=('-h' '--help' '--changes' '--no-changes' '--dependencies' '--no-dependencies' '-e' '--exit-code' '--increment' '--no-increment' '-n' '--now' '-y' '--refresh' '-s' '--source' '-u' '--username' '-v' '--variable')
|
_shtab_ahriman_package_add_option_strings=('-h' '--help' '--changes' '--no-changes' '--dependencies' '--no-dependencies' '-e' '--exit-code' '--increment' '--no-increment' '-n' '--now' '-s' '--source' '-u' '--username' '-v' '--variable' '-y' '--refresh')
|
||||||
|
_shtab_ahriman_package_archives_option_strings=('-h' '--help' '-e' '--exit-code' '--info' '--no-info')
|
||||||
_shtab_ahriman_package_changes_option_strings=('-h' '--help' '-e' '--exit-code')
|
_shtab_ahriman_package_changes_option_strings=('-h' '--help' '-e' '--exit-code')
|
||||||
_shtab_ahriman_package_changes_remove_option_strings=('-h' '--help')
|
_shtab_ahriman_package_changes_remove_option_strings=('-h' '--help')
|
||||||
_shtab_ahriman_package_copy_option_strings=('-h' '--help' '-e' '--exit-code' '--remove')
|
_shtab_ahriman_package_copy_option_strings=('-h' '--help' '-e' '--exit-code' '--remove')
|
||||||
|
_shtab_ahriman_package_hold_option_strings=('-h' '--help')
|
||||||
|
_shtab_ahriman_package_pkgbuild_option_strings=('-h' '--help' '-e' '--exit-code')
|
||||||
|
_shtab_ahriman_package_pkgbuild_remove_option_strings=('-h' '--help')
|
||||||
_shtab_ahriman_package_remove_option_strings=('-h' '--help')
|
_shtab_ahriman_package_remove_option_strings=('-h' '--help')
|
||||||
|
_shtab_ahriman_package_rollback_option_strings=('-h' '--help' '--hold' '--no-hold' '-u' '--username')
|
||||||
_shtab_ahriman_package_status_option_strings=('-h' '--help' '--ahriman' '-e' '--exit-code' '--info' '--no-info' '-s' '--status')
|
_shtab_ahriman_package_status_option_strings=('-h' '--help' '--ahriman' '-e' '--exit-code' '--info' '--no-info' '-s' '--status')
|
||||||
_shtab_ahriman_package_status_remove_option_strings=('-h' '--help')
|
_shtab_ahriman_package_status_remove_option_strings=('-h' '--help')
|
||||||
_shtab_ahriman_package_status_update_option_strings=('-h' '--help' '-s' '--status')
|
_shtab_ahriman_package_status_update_option_strings=('-h' '--help' '-s' '--status')
|
||||||
_shtab_ahriman_package_update_option_strings=('-h' '--help' '--changes' '--no-changes' '--dependencies' '--no-dependencies' '-e' '--exit-code' '--increment' '--no-increment' '-n' '--now' '-y' '--refresh' '-s' '--source' '-u' '--username' '-v' '--variable')
|
_shtab_ahriman_package_unhold_option_strings=('-h' '--help')
|
||||||
|
_shtab_ahriman_package_update_option_strings=('-h' '--help' '--changes' '--no-changes' '--dependencies' '--no-dependencies' '-e' '--exit-code' '--increment' '--no-increment' '-n' '--now' '-s' '--source' '-u' '--username' '-v' '--variable' '-y' '--refresh')
|
||||||
_shtab_ahriman_patch_add_option_strings=('-h' '--help')
|
_shtab_ahriman_patch_add_option_strings=('-h' '--help')
|
||||||
_shtab_ahriman_patch_list_option_strings=('-h' '--help' '-e' '--exit-code' '-v' '--variable')
|
_shtab_ahriman_patch_list_option_strings=('-h' '--help' '-e' '--exit-code' '-v' '--variable')
|
||||||
_shtab_ahriman_patch_remove_option_strings=('-h' '--help' '-v' '--variable')
|
_shtab_ahriman_patch_remove_option_strings=('-h' '--help' '-v' '--variable')
|
||||||
@@ -82,7 +88,7 @@ _shtab_ahriman_web_reload_option_strings=('-h' '--help')
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
_shtab_ahriman_pos_0_choices=('add' 'aur-search' 'check' 'clean' 'config' 'config-validate' 'copy' 'daemon' 'help' 'help-commands-unsafe' 'help-updates' 'help-version' 'init' 'key-import' 'package-add' 'package-changes' 'package-changes-remove' 'package-copy' 'package-remove' 'package-status' 'package-status-remove' 'package-status-update' 'package-update' 'patch-add' 'patch-list' 'patch-remove' 'patch-set-add' 'rebuild' 'remove' 'remove-unknown' 'repo-backup' 'repo-check' 'repo-clean' 'repo-config' 'repo-config-validate' 'repo-create-keyring' 'repo-create-mirrorlist' 'repo-daemon' 'repo-init' 'repo-rebuild' 'repo-remove-unknown' 'repo-report' 'repo-restore' 'repo-setup' 'repo-sign' 'repo-statistics' 'repo-status-update' 'repo-sync' 'repo-tree' 'repo-triggers' 'repo-update' 'report' 'run' 'search' 'service-clean' 'service-config' 'service-config-validate' 'service-key-import' 'service-repositories' 'service-run' 'service-setup' 'service-shell' 'service-tree-migrate' 'setup' 'shell' 'sign' 'status' 'status-update' 'sync' 'update' 'user-add' 'user-list' 'user-remove' 'version' 'web' 'web-reload')
|
_shtab_ahriman_pos_0_choices=('add' 'aur-search' 'check' 'clean' 'config' 'config-validate' 'copy' 'daemon' 'help' 'help-commands-unsafe' 'help-updates' 'help-version' 'init' 'key-import' 'package-add' 'package-archives' 'package-changes' 'package-changes-remove' 'package-copy' 'package-hold' 'package-pkgbuild' 'package-pkgbuild-remove' 'package-remove' 'package-rollback' 'package-status' 'package-status-remove' 'package-status-update' 'package-unhold' 'package-update' 'patch-add' 'patch-list' 'patch-remove' 'patch-set-add' 'rebuild' 'remove' 'remove-unknown' 'repo-backup' 'repo-check' 'repo-clean' 'repo-config' 'repo-config-validate' 'repo-create-keyring' 'repo-create-mirrorlist' 'repo-daemon' 'repo-init' 'repo-rebuild' 'repo-remove-unknown' 'repo-report' 'repo-restore' 'repo-setup' 'repo-sign' 'repo-statistics' 'repo-status-update' 'repo-sync' 'repo-tree' 'repo-triggers' 'repo-update' 'report' 'run' 'search' 'service-clean' 'service-config' 'service-config-validate' 'service-key-import' 'service-repositories' 'service-run' 'service-setup' 'service-shell' 'service-tree-migrate' 'setup' 'shell' 'sign' 'status' 'status-update' 'sync' 'update' 'user-add' 'user-list' 'user-remove' 'version' 'web' 'web-reload')
|
||||||
_shtab_ahriman___log_handler_choices=('console' 'syslog' 'journald')
|
_shtab_ahriman___log_handler_choices=('console' 'syslog' 'journald')
|
||||||
_shtab_ahriman_add__s_choices=('auto' 'archive' 'aur' 'directory' 'local' 'remote' 'repository')
|
_shtab_ahriman_add__s_choices=('auto' 'archive' 'aur' 'directory' 'local' 'remote' 'repository')
|
||||||
_shtab_ahriman_add___source_choices=('auto' 'archive' 'aur' 'directory' 'local' 'remote' 'repository')
|
_shtab_ahriman_add___source_choices=('auto' 'archive' 'aur' 'directory' 'local' 'remote' 'repository')
|
||||||
@@ -102,8 +108,8 @@ _shtab_ahriman_repo_init___sign_target_choices=('disabled' 'packages' 'repositor
|
|||||||
_shtab_ahriman_repo_rebuild__s_choices=('unknown' 'pending' 'building' 'failed' 'success')
|
_shtab_ahriman_repo_rebuild__s_choices=('unknown' 'pending' 'building' 'failed' 'success')
|
||||||
_shtab_ahriman_repo_rebuild___status_choices=('unknown' 'pending' 'building' 'failed' 'success')
|
_shtab_ahriman_repo_rebuild___status_choices=('unknown' 'pending' 'building' 'failed' 'success')
|
||||||
_shtab_ahriman_repo_setup___sign_target_choices=('disabled' 'packages' 'repository')
|
_shtab_ahriman_repo_setup___sign_target_choices=('disabled' 'packages' 'repository')
|
||||||
_shtab_ahriman_repo_statistics__e_choices=('package-outdated' 'package-removed' 'package-update-failed' 'package-updated')
|
_shtab_ahriman_repo_statistics__e_choices=('build-log' 'package-held' 'package-outdated' 'package-removed' 'package-status-changed' 'package-update-failed' 'package-updated' 'service-status-changed')
|
||||||
_shtab_ahriman_repo_statistics___event_choices=('package-outdated' 'package-removed' 'package-update-failed' 'package-updated')
|
_shtab_ahriman_repo_statistics___event_choices=('build-log' 'package-held' 'package-outdated' 'package-removed' 'package-status-changed' 'package-update-failed' 'package-updated' 'service-status-changed')
|
||||||
_shtab_ahriman_repo_status_update__s_choices=('unknown' 'pending' 'building' 'failed' 'success')
|
_shtab_ahriman_repo_status_update__s_choices=('unknown' 'pending' 'building' 'failed' 'success')
|
||||||
_shtab_ahriman_repo_status_update___status_choices=('unknown' 'pending' 'building' 'failed' 'success')
|
_shtab_ahriman_repo_status_update___status_choices=('unknown' 'pending' 'building' 'failed' 'success')
|
||||||
_shtab_ahriman_search___sort_by_choices=('description' 'first_submitted' 'id' 'last_modified' 'maintainer' 'name' 'num_votes' 'out_of_date' 'package_base' 'package_base_id' 'popularity' 'repository' 'submitter' 'url' 'url_path' 'version')
|
_shtab_ahriman_search___sort_by_choices=('description' 'first_submitted' 'id' 'last_modified' 'maintainer' 'name' 'num_votes' 'out_of_date' 'package_base' 'package_base_id' 'popularity' 'repository' 'submitter' 'url' 'url_path' 'version')
|
||||||
@@ -251,6 +257,12 @@ _shtab_ahriman_package_add__n_nargs=0
|
|||||||
_shtab_ahriman_package_add___now_nargs=0
|
_shtab_ahriman_package_add___now_nargs=0
|
||||||
_shtab_ahriman_package_add__y_nargs=0
|
_shtab_ahriman_package_add__y_nargs=0
|
||||||
_shtab_ahriman_package_add___refresh_nargs=0
|
_shtab_ahriman_package_add___refresh_nargs=0
|
||||||
|
_shtab_ahriman_package_archives__h_nargs=0
|
||||||
|
_shtab_ahriman_package_archives___help_nargs=0
|
||||||
|
_shtab_ahriman_package_archives__e_nargs=0
|
||||||
|
_shtab_ahriman_package_archives___exit_code_nargs=0
|
||||||
|
_shtab_ahriman_package_archives___info_nargs=0
|
||||||
|
_shtab_ahriman_package_archives___no_info_nargs=0
|
||||||
_shtab_ahriman_package_changes__h_nargs=0
|
_shtab_ahriman_package_changes__h_nargs=0
|
||||||
_shtab_ahriman_package_changes___help_nargs=0
|
_shtab_ahriman_package_changes___help_nargs=0
|
||||||
_shtab_ahriman_package_changes__e_nargs=0
|
_shtab_ahriman_package_changes__e_nargs=0
|
||||||
@@ -263,9 +275,22 @@ _shtab_ahriman_package_copy___help_nargs=0
|
|||||||
_shtab_ahriman_package_copy__e_nargs=0
|
_shtab_ahriman_package_copy__e_nargs=0
|
||||||
_shtab_ahriman_package_copy___exit_code_nargs=0
|
_shtab_ahriman_package_copy___exit_code_nargs=0
|
||||||
_shtab_ahriman_package_copy___remove_nargs=0
|
_shtab_ahriman_package_copy___remove_nargs=0
|
||||||
|
_shtab_ahriman_package_hold_pos_0_nargs=+
|
||||||
|
_shtab_ahriman_package_hold__h_nargs=0
|
||||||
|
_shtab_ahriman_package_hold___help_nargs=0
|
||||||
|
_shtab_ahriman_package_pkgbuild__h_nargs=0
|
||||||
|
_shtab_ahriman_package_pkgbuild___help_nargs=0
|
||||||
|
_shtab_ahriman_package_pkgbuild__e_nargs=0
|
||||||
|
_shtab_ahriman_package_pkgbuild___exit_code_nargs=0
|
||||||
|
_shtab_ahriman_package_pkgbuild_remove__h_nargs=0
|
||||||
|
_shtab_ahriman_package_pkgbuild_remove___help_nargs=0
|
||||||
_shtab_ahriman_package_remove_pos_0_nargs=+
|
_shtab_ahriman_package_remove_pos_0_nargs=+
|
||||||
_shtab_ahriman_package_remove__h_nargs=0
|
_shtab_ahriman_package_remove__h_nargs=0
|
||||||
_shtab_ahriman_package_remove___help_nargs=0
|
_shtab_ahriman_package_remove___help_nargs=0
|
||||||
|
_shtab_ahriman_package_rollback__h_nargs=0
|
||||||
|
_shtab_ahriman_package_rollback___help_nargs=0
|
||||||
|
_shtab_ahriman_package_rollback___hold_nargs=0
|
||||||
|
_shtab_ahriman_package_rollback___no_hold_nargs=0
|
||||||
_shtab_ahriman_package_status_pos_0_nargs=*
|
_shtab_ahriman_package_status_pos_0_nargs=*
|
||||||
_shtab_ahriman_package_status__h_nargs=0
|
_shtab_ahriman_package_status__h_nargs=0
|
||||||
_shtab_ahriman_package_status___help_nargs=0
|
_shtab_ahriman_package_status___help_nargs=0
|
||||||
@@ -280,6 +305,9 @@ _shtab_ahriman_package_status_remove___help_nargs=0
|
|||||||
_shtab_ahriman_package_status_update_pos_0_nargs=*
|
_shtab_ahriman_package_status_update_pos_0_nargs=*
|
||||||
_shtab_ahriman_package_status_update__h_nargs=0
|
_shtab_ahriman_package_status_update__h_nargs=0
|
||||||
_shtab_ahriman_package_status_update___help_nargs=0
|
_shtab_ahriman_package_status_update___help_nargs=0
|
||||||
|
_shtab_ahriman_package_unhold_pos_0_nargs=+
|
||||||
|
_shtab_ahriman_package_unhold__h_nargs=0
|
||||||
|
_shtab_ahriman_package_unhold___help_nargs=0
|
||||||
_shtab_ahriman_package_update_pos_0_nargs=+
|
_shtab_ahriman_package_update_pos_0_nargs=+
|
||||||
_shtab_ahriman_package_update__h_nargs=0
|
_shtab_ahriman_package_update__h_nargs=0
|
||||||
_shtab_ahriman_package_update___help_nargs=0
|
_shtab_ahriman_package_update___help_nargs=0
|
||||||
|
|||||||
@@ -1,9 +1,9 @@
|
|||||||
.TH AHRIMAN "1" "2026\-03\-08" "ahriman 2.20.0" "ArcH linux ReposItory MANager"
|
.TH AHRIMAN "1" "2026\-07\-21" "ahriman 2.21.1" "ArcH linux ReposItory MANager"
|
||||||
.SH NAME
|
.SH NAME
|
||||||
ahriman \- ArcH linux ReposItory MANager
|
ahriman \- ArcH linux ReposItory MANager
|
||||||
.SH SYNOPSIS
|
.SH SYNOPSIS
|
||||||
.B [0m[1;35mahriman[0m
|
.B ahriman
|
||||||
[[32m-h[0m] [[32m-a [33mARCHITECTURE[0m] [[32m-c [33mCONFIGURATION[0m] [[36m--force[0m] [[32m-l [33mLOCK[0m] [[36m--log-handler [33m{console,syslog,journald}[0m] [[32m-q[0m] [[36m--report | --no-report[0m] [[32m-r [33mREPOSITORY[0m] [[36m--unsafe[0m] [[32m-V[0m] [[36m--wait-timeout [33mWAIT_TIMEOUT[0m] [32m{add,aur-search,check,clean,config,config-validate,copy,daemon,help,help-commands-unsafe,help-updates,help-version,init,key-import,package-add,package-changes,package-changes-remove,package-copy,package-remove,package-status,package-status-remove,package-status-update,package-update,patch-add,patch-list,patch-remove,patch-set-add,rebuild,remove,remove-unknown,repo-backup,repo-check,repo-clean,repo-config,repo-config-validate,repo-create-keyring,repo-create-mirrorlist,repo-daemon,repo-init,repo-rebuild,repo-remove-unknown,repo-report,repo-restore,repo-setup,repo-sign,repo-statistics,repo-status-update,repo-sync,repo-tree,repo-triggers,repo-update,report,run,search,service-clean,service-config,service-config-validate,service-key-import,service-repositories,service-run,service-setup,service-shell,service-tree-migrate,setup,shell,sign,status,status-update,sync,update,user-add,user-list,user-remove,version,web,web-reload} ...[0m
|
[-h] [-a ARCHITECTURE] [-c CONFIGURATION] [--force] [-l LOCK] [--log-handler {console,syslog,journald}] [-q] [--report | --no-report] [-r REPOSITORY] [--unsafe] [-V] [--wait-timeout WAIT_TIMEOUT] {add,aur-search,check,clean,config,config-validate,copy,daemon,help,help-commands-unsafe,help-updates,help-version,init,key-import,package-add,package-archives,package-changes,package-changes-remove,package-copy,package-hold,package-pkgbuild,package-pkgbuild-remove,package-remove,package-rollback,package-status,package-status-remove,package-status-update,package-unhold,package-update,patch-add,patch-list,patch-remove,patch-set-add,rebuild,remove,remove-unknown,repo-backup,repo-check,repo-clean,repo-config,repo-config-validate,repo-create-keyring,repo-create-mirrorlist,repo-daemon,repo-init,repo-rebuild,repo-remove-unknown,repo-report,repo-restore,repo-setup,repo-sign,repo-statistics,repo-status-update,repo-sync,repo-tree,repo-triggers,repo-update,report,run,search,service-clean,service-config,service-config-validate,service-key-import,service-repositories,service-run,service-setup,service-shell,service-tree-migrate,setup,shell,sign,status,status-update,sync,update,user-add,user-list,user-remove,version,web,web-reload} ...
|
||||||
.SH DESCRIPTION
|
.SH DESCRIPTION
|
||||||
ArcH linux ReposItory MANager
|
ArcH linux ReposItory MANager
|
||||||
|
|
||||||
@@ -74,6 +74,9 @@ application version
|
|||||||
\fBahriman\fR \fI\,package\-add\/\fR
|
\fBahriman\fR \fI\,package\-add\/\fR
|
||||||
add package
|
add package
|
||||||
.TP
|
.TP
|
||||||
|
\fBahriman\fR \fI\,package\-archives\/\fR
|
||||||
|
list package archive versions
|
||||||
|
.TP
|
||||||
\fBahriman\fR \fI\,package\-changes\/\fR
|
\fBahriman\fR \fI\,package\-changes\/\fR
|
||||||
get package changes
|
get package changes
|
||||||
.TP
|
.TP
|
||||||
@@ -83,9 +86,21 @@ remove package changes
|
|||||||
\fBahriman\fR \fI\,package\-copy\/\fR
|
\fBahriman\fR \fI\,package\-copy\/\fR
|
||||||
copy package from another repository
|
copy package from another repository
|
||||||
.TP
|
.TP
|
||||||
|
\fBahriman\fR \fI\,package\-hold\/\fR
|
||||||
|
hold package
|
||||||
|
.TP
|
||||||
|
\fBahriman\fR \fI\,package\-pkgbuild\/\fR
|
||||||
|
get package pkgbuild
|
||||||
|
.TP
|
||||||
|
\fBahriman\fR \fI\,package\-pkgbuild\-remove\/\fR
|
||||||
|
remove package pkgbuild
|
||||||
|
.TP
|
||||||
\fBahriman\fR \fI\,package\-remove\/\fR
|
\fBahriman\fR \fI\,package\-remove\/\fR
|
||||||
remove package
|
remove package
|
||||||
.TP
|
.TP
|
||||||
|
\fBahriman\fR \fI\,package\-rollback\/\fR
|
||||||
|
rollback package
|
||||||
|
.TP
|
||||||
\fBahriman\fR \fI\,package\-status\/\fR
|
\fBahriman\fR \fI\,package\-status\/\fR
|
||||||
get package status
|
get package status
|
||||||
.TP
|
.TP
|
||||||
@@ -95,6 +110,9 @@ remove package status
|
|||||||
\fBahriman\fR \fI\,package\-status\-update\/\fR
|
\fBahriman\fR \fI\,package\-status\-update\/\fR
|
||||||
update package status
|
update package status
|
||||||
.TP
|
.TP
|
||||||
|
\fBahriman\fR \fI\,package\-unhold\/\fR
|
||||||
|
unhold package
|
||||||
|
.TP
|
||||||
\fBahriman\fR \fI\,patch\-add\/\fR
|
\fBahriman\fR \fI\,patch\-add\/\fR
|
||||||
add patch for PKGBUILD function
|
add patch for PKGBUILD function
|
||||||
.TP
|
.TP
|
||||||
@@ -198,9 +216,9 @@ web server
|
|||||||
reload configuration
|
reload configuration
|
||||||
|
|
||||||
.SH COMMAND \fI\,'ahriman aur\-search'\/\fR
|
.SH COMMAND \fI\,'ahriman aur\-search'\/\fR
|
||||||
[1;34musage: [0m[1;35mahriman aur\-search[0m [[32m\-h[0m] [[32m\-e[0m] [[36m\-\-info | \-\-no\-info[0m]
|
usage: ahriman aur\-search [\-h] [\-e] [\-\-info | \-\-no\-info]
|
||||||
[[36m\-\-sort\-by [33m{description,first_submitted,id,last_modified,maintainer,name,num_votes,out_of_date,package_base,package_base_id,popularity,repository,submitter,url,url_path,version}[0m]
|
[\-\-sort\-by {description,first_submitted,id,last_modified,maintainer,name,num_votes,out_of_date,package_base,package_base_id,popularity,repository,submitter,url,url_path,version}]
|
||||||
[32msearch [search ...][0m
|
search [search ...]
|
||||||
|
|
||||||
search for package in AUR using API
|
search for package in AUR using API
|
||||||
|
|
||||||
@@ -223,7 +241,7 @@ sort field by this field. In case if two packages have the same value of the spe
|
|||||||
by name
|
by name
|
||||||
|
|
||||||
.SH COMMAND \fI\,'ahriman help'\/\fR
|
.SH COMMAND \fI\,'ahriman help'\/\fR
|
||||||
[1;34musage: [0m[1;35mahriman help[0m [[32m\-h[0m] [32m[subcommand][0m
|
usage: ahriman help [\-h] [subcommand]
|
||||||
|
|
||||||
show help message for application or command and exit
|
show help message for application or command and exit
|
||||||
|
|
||||||
@@ -232,7 +250,7 @@ show help message for application or command and exit
|
|||||||
show help message for specific command
|
show help message for specific command
|
||||||
|
|
||||||
.SH COMMAND \fI\,'ahriman help\-commands\-unsafe'\/\fR
|
.SH COMMAND \fI\,'ahriman help\-commands\-unsafe'\/\fR
|
||||||
[1;34musage: [0m[1;35mahriman help\-commands\-unsafe[0m [[32m\-h[0m] [32m[subcommand ...][0m
|
usage: ahriman help\-commands\-unsafe [\-h] [subcommand ...]
|
||||||
|
|
||||||
list unsafe commands as defined in default args
|
list unsafe commands as defined in default args
|
||||||
|
|
||||||
@@ -242,7 +260,7 @@ instead of showing commands, just test command line for unsafe subcommand and re
|
|||||||
otherwise
|
otherwise
|
||||||
|
|
||||||
.SH COMMAND \fI\,'ahriman help\-updates'\/\fR
|
.SH COMMAND \fI\,'ahriman help\-updates'\/\fR
|
||||||
[1;34musage: [0m[1;35mahriman help\-updates[0m [[32m\-h[0m] [[32m\-e[0m]
|
usage: ahriman help\-updates [\-h] [\-e]
|
||||||
|
|
||||||
request AUR for current version and compare with current service version
|
request AUR for current version and compare with current service version
|
||||||
|
|
||||||
@@ -252,15 +270,15 @@ request AUR for current version and compare with current service version
|
|||||||
return non\-zero exit code if updates available
|
return non\-zero exit code if updates available
|
||||||
|
|
||||||
.SH COMMAND \fI\,'ahriman help\-version'\/\fR
|
.SH COMMAND \fI\,'ahriman help\-version'\/\fR
|
||||||
[1;34musage: [0m[1;35mahriman help\-version[0m [[32m\-h[0m]
|
usage: ahriman help\-version [\-h]
|
||||||
|
|
||||||
print application and its dependencies versions
|
print application and its dependencies versions
|
||||||
|
|
||||||
.SH COMMAND \fI\,'ahriman package\-add'\/\fR
|
.SH COMMAND \fI\,'ahriman package\-add'\/\fR
|
||||||
[1;34musage: [0m[1;35mahriman package\-add[0m [[32m\-h[0m] [[36m\-\-changes | \-\-no\-changes[0m] [[36m\-\-dependencies | \-\-no\-dependencies[0m] [[32m\-e[0m]
|
usage: ahriman package\-add [\-h] [\-\-changes | \-\-no\-changes] [\-\-dependencies | \-\-no\-dependencies] [\-e]
|
||||||
[[36m\-\-increment | \-\-no\-increment[0m] [[32m\-n[0m] [[32m\-y[0m]
|
[\-\-increment | \-\-no\-increment] [\-n] [\-s {auto,archive,aur,directory,local,remote,repository}]
|
||||||
[[32m\-s [33m{auto,archive,aur,directory,local,remote,repository}[0m] [[32m\-u [33mUSERNAME[0m] [[32m\-v [33mVARIABLE[0m]
|
[\-u USERNAME] [\-v VARIABLE] [\-y]
|
||||||
[32mpackage [package ...][0m
|
package [package ...]
|
||||||
|
|
||||||
add existing or new package to the build queue
|
add existing or new package to the build queue
|
||||||
|
|
||||||
@@ -289,10 +307,6 @@ increment package release (pkgrel) version on duplicate
|
|||||||
\fB\-n\fR, \fB\-\-now\fR
|
\fB\-n\fR, \fB\-\-now\fR
|
||||||
run update function after
|
run update function after
|
||||||
|
|
||||||
.TP
|
|
||||||
\fB\-y\fR, \fB\-\-refresh\fR
|
|
||||||
download fresh package databases from the mirror before actions, \-yy to force refresh even if up to date
|
|
||||||
|
|
||||||
.TP
|
.TP
|
||||||
\fB\-s\fR \fI\,{auto,archive,aur,directory,local,remote,repository}\/\fR, \fB\-\-source\fR \fI\,{auto,archive,aur,directory,local,remote,repository}\/\fR
|
\fB\-s\fR \fI\,{auto,archive,aur,directory,local,remote,repository}\/\fR, \fB\-\-source\fR \fI\,{auto,archive,aur,directory,local,remote,repository}\/\fR
|
||||||
explicitly specify the package source for this command
|
explicitly specify the package source for this command
|
||||||
@@ -305,8 +319,30 @@ build as user
|
|||||||
\fB\-v\fR \fI\,VARIABLE\/\fR, \fB\-\-variable\fR \fI\,VARIABLE\/\fR
|
\fB\-v\fR \fI\,VARIABLE\/\fR, \fB\-\-variable\fR \fI\,VARIABLE\/\fR
|
||||||
apply specified makepkg variables to the next build
|
apply specified makepkg variables to the next build
|
||||||
|
|
||||||
|
.TP
|
||||||
|
\fB\-y\fR, \fB\-\-refresh\fR
|
||||||
|
download fresh package databases from the mirror before actions, \-yy to force refresh even if up to date
|
||||||
|
|
||||||
|
.SH COMMAND \fI\,'ahriman package\-archives'\/\fR
|
||||||
|
usage: ahriman package\-archives [\-h] [\-e] [\-\-info | \-\-no\-info] package
|
||||||
|
|
||||||
|
list available archive versions for the package
|
||||||
|
|
||||||
|
.TP
|
||||||
|
\fBpackage\fR
|
||||||
|
package base
|
||||||
|
|
||||||
|
.SH OPTIONS \fI\,'ahriman package\-archives'\/\fR
|
||||||
|
.TP
|
||||||
|
\fB\-e\fR, \fB\-\-exit\-code\fR
|
||||||
|
return non\-zero exit status if result is empty
|
||||||
|
|
||||||
|
.TP
|
||||||
|
\fB\-\-info\fR, \fB\-\-no\-info\fR
|
||||||
|
show additional package information
|
||||||
|
|
||||||
.SH COMMAND \fI\,'ahriman package\-changes'\/\fR
|
.SH COMMAND \fI\,'ahriman package\-changes'\/\fR
|
||||||
[1;34musage: [0m[1;35mahriman package\-changes[0m [[32m\-h[0m] [[32m\-e[0m] [32mpackage[0m
|
usage: ahriman package\-changes [\-h] [\-e] package
|
||||||
|
|
||||||
retrieve package changes stored in database
|
retrieve package changes stored in database
|
||||||
|
|
||||||
@@ -320,7 +356,7 @@ package base
|
|||||||
return non\-zero exit status if result is empty
|
return non\-zero exit status if result is empty
|
||||||
|
|
||||||
.SH COMMAND \fI\,'ahriman package\-changes\-remove'\/\fR
|
.SH COMMAND \fI\,'ahriman package\-changes\-remove'\/\fR
|
||||||
[1;34musage: [0m[1;35mahriman package\-changes\-remove[0m [[32m\-h[0m] [32mpackage[0m
|
usage: ahriman package\-changes\-remove [\-h] package
|
||||||
|
|
||||||
remove the package changes stored remotely
|
remove the package changes stored remotely
|
||||||
|
|
||||||
@@ -329,7 +365,7 @@ remove the package changes stored remotely
|
|||||||
package base
|
package base
|
||||||
|
|
||||||
.SH COMMAND \fI\,'ahriman package\-copy'\/\fR
|
.SH COMMAND \fI\,'ahriman package\-copy'\/\fR
|
||||||
[1;34musage: [0m[1;35mahriman package\-copy[0m [[32m\-h[0m] [[32m\-e[0m] [[36m\-\-remove[0m] [32msource[0m [32mpackage [package ...][0m
|
usage: ahriman package\-copy [\-h] [\-e] [\-\-remove] source package [package ...]
|
||||||
|
|
||||||
copy package and its metadata from another repository
|
copy package and its metadata from another repository
|
||||||
|
|
||||||
@@ -350,8 +386,40 @@ return non\-zero exit status if result is empty
|
|||||||
\fB\-\-remove\fR
|
\fB\-\-remove\fR
|
||||||
remove package from the source repository after
|
remove package from the source repository after
|
||||||
|
|
||||||
|
.SH COMMAND \fI\,'ahriman package\-hold'\/\fR
|
||||||
|
usage: ahriman package\-hold [\-h] package [package ...]
|
||||||
|
|
||||||
|
hold package from automatic updates
|
||||||
|
|
||||||
|
.TP
|
||||||
|
\fBpackage\fR
|
||||||
|
package base
|
||||||
|
|
||||||
|
.SH COMMAND \fI\,'ahriman package\-pkgbuild'\/\fR
|
||||||
|
usage: ahriman package\-pkgbuild [\-h] [\-e] package
|
||||||
|
|
||||||
|
retrieve package PKGBUILD stored in database
|
||||||
|
|
||||||
|
.TP
|
||||||
|
\fBpackage\fR
|
||||||
|
package base
|
||||||
|
|
||||||
|
.SH OPTIONS \fI\,'ahriman package\-pkgbuild'\/\fR
|
||||||
|
.TP
|
||||||
|
\fB\-e\fR, \fB\-\-exit\-code\fR
|
||||||
|
return non\-zero exit status if result is empty
|
||||||
|
|
||||||
|
.SH COMMAND \fI\,'ahriman package\-pkgbuild\-remove'\/\fR
|
||||||
|
usage: ahriman package\-pkgbuild\-remove [\-h] package
|
||||||
|
|
||||||
|
remove the package PKGBUILD stored remotely
|
||||||
|
|
||||||
|
.TP
|
||||||
|
\fBpackage\fR
|
||||||
|
package base
|
||||||
|
|
||||||
.SH COMMAND \fI\,'ahriman package\-remove'\/\fR
|
.SH COMMAND \fI\,'ahriman package\-remove'\/\fR
|
||||||
[1;34musage: [0m[1;35mahriman package\-remove[0m [[32m\-h[0m] [32mpackage [package ...][0m
|
usage: ahriman package\-remove [\-h] package [package ...]
|
||||||
|
|
||||||
remove package from the repository
|
remove package from the repository
|
||||||
|
|
||||||
@@ -359,9 +427,31 @@ remove package from the repository
|
|||||||
\fBpackage\fR
|
\fBpackage\fR
|
||||||
package name or base
|
package name or base
|
||||||
|
|
||||||
|
.SH COMMAND \fI\,'ahriman package\-rollback'\/\fR
|
||||||
|
usage: ahriman package\-rollback [\-h] [\-\-hold | \-\-no\-hold] [\-u USERNAME] package version
|
||||||
|
|
||||||
|
rollback package to specified version from archives
|
||||||
|
|
||||||
|
.TP
|
||||||
|
\fBpackage\fR
|
||||||
|
package base
|
||||||
|
|
||||||
|
.TP
|
||||||
|
\fBversion\fR
|
||||||
|
package version
|
||||||
|
|
||||||
|
.SH OPTIONS \fI\,'ahriman package\-rollback'\/\fR
|
||||||
|
.TP
|
||||||
|
\fB\-\-hold\fR, \fB\-\-no\-hold\fR
|
||||||
|
hold package afterwards
|
||||||
|
|
||||||
|
.TP
|
||||||
|
\fB\-u\fR \fI\,USERNAME\/\fR, \fB\-\-username\fR \fI\,USERNAME\/\fR
|
||||||
|
build as user
|
||||||
|
|
||||||
.SH COMMAND \fI\,'ahriman package\-status'\/\fR
|
.SH COMMAND \fI\,'ahriman package\-status'\/\fR
|
||||||
[1;34musage: [0m[1;35mahriman package\-status[0m [[32m\-h[0m] [[36m\-\-ahriman[0m] [[32m\-e[0m] [[36m\-\-info | \-\-no\-info[0m] [[32m\-s [33m{unknown,pending,building,failed,success}[0m]
|
usage: ahriman package\-status [\-h] [\-\-ahriman] [\-e] [\-\-info | \-\-no\-info] [\-s {unknown,pending,building,failed,success}]
|
||||||
[32m[package ...][0m
|
[package ...]
|
||||||
|
|
||||||
request status of the package
|
request status of the package
|
||||||
|
|
||||||
@@ -387,7 +477,7 @@ show additional package information
|
|||||||
filter packages by status
|
filter packages by status
|
||||||
|
|
||||||
.SH COMMAND \fI\,'ahriman package\-status\-remove'\/\fR
|
.SH COMMAND \fI\,'ahriman package\-status\-remove'\/\fR
|
||||||
[1;34musage: [0m[1;35mahriman package\-status\-remove[0m [[32m\-h[0m] [32mpackage [package ...][0m
|
usage: ahriman package\-status\-remove [\-h] package [package ...]
|
||||||
|
|
||||||
remove the package from the status page
|
remove the package from the status page
|
||||||
|
|
||||||
@@ -396,7 +486,7 @@ remove the package from the status page
|
|||||||
remove specified packages from status page
|
remove specified packages from status page
|
||||||
|
|
||||||
.SH COMMAND \fI\,'ahriman package\-status\-update'\/\fR
|
.SH COMMAND \fI\,'ahriman package\-status\-update'\/\fR
|
||||||
[1;34musage: [0m[1;35mahriman package\-status\-update[0m [[32m\-h[0m] [[32m\-s [33m{unknown,pending,building,failed,success}[0m] [32m[package ...][0m
|
usage: ahriman package\-status\-update [\-h] [\-s {unknown,pending,building,failed,success}] [package ...]
|
||||||
|
|
||||||
update package status on the status page
|
update package status on the status page
|
||||||
|
|
||||||
@@ -409,8 +499,17 @@ set status for specified packages. If no packages supplied, service status will
|
|||||||
\fB\-s\fR \fI\,{unknown,pending,building,failed,success}\/\fR, \fB\-\-status\fR \fI\,{unknown,pending,building,failed,success}\/\fR
|
\fB\-s\fR \fI\,{unknown,pending,building,failed,success}\/\fR, \fB\-\-status\fR \fI\,{unknown,pending,building,failed,success}\/\fR
|
||||||
new package build status
|
new package build status
|
||||||
|
|
||||||
|
.SH COMMAND \fI\,'ahriman package\-unhold'\/\fR
|
||||||
|
usage: ahriman package\-unhold [\-h] package [package ...]
|
||||||
|
|
||||||
|
remove package hold, allowing automatic updates
|
||||||
|
|
||||||
|
.TP
|
||||||
|
\fBpackage\fR
|
||||||
|
package base
|
||||||
|
|
||||||
.SH COMMAND \fI\,'ahriman patch\-add'\/\fR
|
.SH COMMAND \fI\,'ahriman patch\-add'\/\fR
|
||||||
[1;34musage: [0m[1;35mahriman patch\-add[0m [[32m\-h[0m] [32mpackage[0m [32mvariable[0m [32m[patch][0m
|
usage: ahriman patch\-add [\-h] package variable [patch]
|
||||||
|
|
||||||
create or update patched PKGBUILD function or variable
|
create or update patched PKGBUILD function or variable
|
||||||
|
|
||||||
@@ -427,7 +526,7 @@ PKGBUILD variable or function name. If variable is a function, it must end with
|
|||||||
path to file which contains function or variable value. If not set, the value will be read from stdin
|
path to file which contains function or variable value. If not set, the value will be read from stdin
|
||||||
|
|
||||||
.SH COMMAND \fI\,'ahriman patch\-list'\/\fR
|
.SH COMMAND \fI\,'ahriman patch\-list'\/\fR
|
||||||
[1;34musage: [0m[1;35mahriman patch\-list[0m [[32m\-h[0m] [[32m\-e[0m] [[32m\-v [33mVARIABLE[0m] [32mpackage[0m
|
usage: ahriman patch\-list [\-h] [\-e] [\-v VARIABLE] package
|
||||||
|
|
||||||
list available patches for the package
|
list available patches for the package
|
||||||
|
|
||||||
@@ -445,7 +544,7 @@ return non\-zero exit status if result is empty
|
|||||||
if set, show only patches for specified PKGBUILD variables
|
if set, show only patches for specified PKGBUILD variables
|
||||||
|
|
||||||
.SH COMMAND \fI\,'ahriman patch\-remove'\/\fR
|
.SH COMMAND \fI\,'ahriman patch\-remove'\/\fR
|
||||||
[1;34musage: [0m[1;35mahriman patch\-remove[0m [[32m\-h[0m] [[32m\-v [33mVARIABLE[0m] [32mpackage[0m
|
usage: ahriman patch\-remove [\-h] [\-v VARIABLE] package
|
||||||
|
|
||||||
remove patches for the package
|
remove patches for the package
|
||||||
|
|
||||||
@@ -460,7 +559,7 @@ should be used for single\-function patches in case if you wold like to remove o
|
|||||||
if not set, it will remove all patches related to the package
|
if not set, it will remove all patches related to the package
|
||||||
|
|
||||||
.SH COMMAND \fI\,'ahriman patch\-set\-add'\/\fR
|
.SH COMMAND \fI\,'ahriman patch\-set\-add'\/\fR
|
||||||
[1;34musage: [0m[1;35mahriman patch\-set\-add[0m [[32m\-h[0m] [[32m\-t [33mTRACK[0m] [32mpackage[0m
|
usage: ahriman patch\-set\-add [\-h] [\-t TRACK] package
|
||||||
|
|
||||||
create or update source patches
|
create or update source patches
|
||||||
|
|
||||||
@@ -474,7 +573,7 @@ path to directory with changed files for patch addition/update
|
|||||||
files which has to be tracked
|
files which has to be tracked
|
||||||
|
|
||||||
.SH COMMAND \fI\,'ahriman repo\-backup'\/\fR
|
.SH COMMAND \fI\,'ahriman repo\-backup'\/\fR
|
||||||
[1;34musage: [0m[1;35mahriman repo\-backup[0m [[32m\-h[0m] [32mpath[0m
|
usage: ahriman repo\-backup [\-h] path
|
||||||
|
|
||||||
backup repository settings and database
|
backup repository settings and database
|
||||||
|
|
||||||
@@ -483,9 +582,9 @@ backup repository settings and database
|
|||||||
path of the output archive
|
path of the output archive
|
||||||
|
|
||||||
.SH COMMAND \fI\,'ahriman repo\-check'\/\fR
|
.SH COMMAND \fI\,'ahriman repo\-check'\/\fR
|
||||||
[1;34musage: [0m[1;35mahriman repo\-check[0m [[32m\-h[0m] [[36m\-\-changes | \-\-no\-changes[0m] [[36m\-\-check\-files | \-\-no\-check\-files[0m] [[32m\-e[0m] [[36m\-\-vcs | \-\-no\-vcs[0m]
|
usage: ahriman repo\-check [\-h] [\-\-changes | \-\-no\-changes] [\-\-check\-files | \-\-no\-check\-files] [\-e] [\-\-vcs | \-\-no\-vcs]
|
||||||
[[32m\-y[0m]
|
[\-y]
|
||||||
[32m[package ...][0m
|
[package ...]
|
||||||
|
|
||||||
check for packages updates. Same as repo\-update \-\-dry\-run \-\-no\-manual
|
check for packages updates. Same as repo\-update \-\-dry\-run \-\-no\-manual
|
||||||
|
|
||||||
@@ -515,20 +614,20 @@ fetch actual version of VCS packages
|
|||||||
download fresh package databases from the mirror before actions, \-yy to force refresh even if up to date
|
download fresh package databases from the mirror before actions, \-yy to force refresh even if up to date
|
||||||
|
|
||||||
.SH COMMAND \fI\,'ahriman repo\-create\-keyring'\/\fR
|
.SH COMMAND \fI\,'ahriman repo\-create\-keyring'\/\fR
|
||||||
[1;34musage: [0m[1;35mahriman repo\-create\-keyring[0m [[32m\-h[0m]
|
usage: ahriman repo\-create\-keyring [\-h]
|
||||||
|
|
||||||
create package which contains list of trusted keys as set by configuration. Note, that this action will only create package, the package itself has to be built manually
|
create package which contains list of trusted keys as set by configuration. Note, that this action will only create package, the package itself has to be built manually
|
||||||
|
|
||||||
.SH COMMAND \fI\,'ahriman repo\-create\-mirrorlist'\/\fR
|
.SH COMMAND \fI\,'ahriman repo\-create\-mirrorlist'\/\fR
|
||||||
[1;34musage: [0m[1;35mahriman repo\-create\-mirrorlist[0m [[32m\-h[0m]
|
usage: ahriman repo\-create\-mirrorlist [\-h]
|
||||||
|
|
||||||
create package which contains list of available mirrors as set by configuration. Note, that this action will only create package, the package itself has to be built manually
|
create package which contains list of available mirrors as set by configuration. Note, that this action will only create package, the package itself has to be built manually
|
||||||
|
|
||||||
.SH COMMAND \fI\,'ahriman repo\-daemon'\/\fR
|
.SH COMMAND \fI\,'ahriman repo\-daemon'\/\fR
|
||||||
[1;34musage: [0m[1;35mahriman repo\-daemon[0m [[32m\-h[0m] [[32m\-i [33mINTERVAL[0m] [[36m\-\-aur | \-\-no\-aur[0m] [[36m\-\-changes | \-\-no\-changes[0m]
|
usage: ahriman repo\-daemon [\-h] [\-i INTERVAL] [\-\-aur | \-\-no\-aur] [\-\-changes | \-\-no\-changes]
|
||||||
[[36m\-\-check\-files | \-\-no\-check\-files[0m] [[36m\-\-dependencies | \-\-no\-dependencies[0m] [[36m\-\-dry\-run[0m]
|
[\-\-check\-files | \-\-no\-check\-files] [\-\-dependencies | \-\-no\-dependencies] [\-\-dry\-run]
|
||||||
[[36m\-\-increment | \-\-no\-increment[0m] [[36m\-\-local | \-\-no\-local[0m] [[36m\-\-manual | \-\-no\-manual[0m]
|
[\-\-increment | \-\-no\-increment] [\-\-local | \-\-no\-local] [\-\-manual | \-\-no\-manual]
|
||||||
[[36m\-\-partitions | \-\-no\-partitions[0m] [[32m\-u [33mUSERNAME[0m] [[36m\-\-vcs | \-\-no\-vcs[0m] [[32m\-y[0m]
|
[\-\-partitions | \-\-no\-partitions] [\-u USERNAME] [\-\-vcs | \-\-no\-vcs] [\-y]
|
||||||
|
|
||||||
start process which periodically will run update process
|
start process which periodically will run update process
|
||||||
|
|
||||||
@@ -586,8 +685,8 @@ fetch actual version of VCS packages
|
|||||||
download fresh package databases from the mirror before actions, \-yy to force refresh even if up to date
|
download fresh package databases from the mirror before actions, \-yy to force refresh even if up to date
|
||||||
|
|
||||||
.SH COMMAND \fI\,'ahriman repo\-rebuild'\/\fR
|
.SH COMMAND \fI\,'ahriman repo\-rebuild'\/\fR
|
||||||
[1;34musage: [0m[1;35mahriman repo\-rebuild[0m [[32m\-h[0m] [[36m\-\-depends\-on [33mDEPENDS_ON[0m] [[36m\-\-dry\-run[0m] [[36m\-\-from\-database[0m] [[36m\-\-increment | \-\-no\-increment[0m]
|
usage: ahriman repo\-rebuild [\-h] [\-\-depends\-on DEPENDS_ON] [\-\-dry\-run] [\-\-from\-database] [\-\-increment | \-\-no\-increment]
|
||||||
[[32m\-e[0m] [[32m\-s [33m{unknown,pending,building,failed,success}[0m] [[32m\-u [33mUSERNAME[0m]
|
[\-e] [\-s {unknown,pending,building,failed,success}] [\-u USERNAME]
|
||||||
|
|
||||||
force rebuild whole repository
|
force rebuild whole repository
|
||||||
|
|
||||||
@@ -623,7 +722,7 @@ filter packages by status. Requires \-\-from\-database to be set
|
|||||||
build as user
|
build as user
|
||||||
|
|
||||||
.SH COMMAND \fI\,'ahriman repo\-remove\-unknown'\/\fR
|
.SH COMMAND \fI\,'ahriman repo\-remove\-unknown'\/\fR
|
||||||
[1;34musage: [0m[1;35mahriman repo\-remove\-unknown[0m [[32m\-h[0m] [[36m\-\-dry\-run[0m]
|
usage: ahriman repo\-remove\-unknown [\-h] [\-\-dry\-run]
|
||||||
|
|
||||||
remove packages which are missing in AUR and do not have local PKGBUILDs
|
remove packages which are missing in AUR and do not have local PKGBUILDs
|
||||||
|
|
||||||
@@ -633,12 +732,12 @@ remove packages which are missing in AUR and do not have local PKGBUILDs
|
|||||||
just perform check for packages without removal
|
just perform check for packages without removal
|
||||||
|
|
||||||
.SH COMMAND \fI\,'ahriman repo\-report'\/\fR
|
.SH COMMAND \fI\,'ahriman repo\-report'\/\fR
|
||||||
[1;34musage: [0m[1;35mahriman repo\-report[0m [[32m\-h[0m]
|
usage: ahriman repo\-report [\-h]
|
||||||
|
|
||||||
generate repository report according to current settings
|
generate repository report according to current settings
|
||||||
|
|
||||||
.SH COMMAND \fI\,'ahriman repo\-restore'\/\fR
|
.SH COMMAND \fI\,'ahriman repo\-restore'\/\fR
|
||||||
[1;34musage: [0m[1;35mahriman repo\-restore[0m [[32m\-h[0m] [[32m\-o [33mOUTPUT[0m] [32mpath[0m
|
usage: ahriman repo\-restore [\-h] [\-o OUTPUT] path
|
||||||
|
|
||||||
restore settings and database
|
restore settings and database
|
||||||
|
|
||||||
@@ -652,7 +751,7 @@ path of the input archive
|
|||||||
root path of the extracted files
|
root path of the extracted files
|
||||||
|
|
||||||
.SH COMMAND \fI\,'ahriman repo\-sign'\/\fR
|
.SH COMMAND \fI\,'ahriman repo\-sign'\/\fR
|
||||||
[1;34musage: [0m[1;35mahriman repo\-sign[0m [[32m\-h[0m] [32m[package ...][0m
|
usage: ahriman repo\-sign [\-h] [package ...]
|
||||||
|
|
||||||
(re\-)sign packages and repository database according to current settings
|
(re\-)sign packages and repository database according to current settings
|
||||||
|
|
||||||
@@ -661,10 +760,10 @@ root path of the extracted files
|
|||||||
sign only specified packages
|
sign only specified packages
|
||||||
|
|
||||||
.SH COMMAND \fI\,'ahriman repo\-statistics'\/\fR
|
.SH COMMAND \fI\,'ahriman repo\-statistics'\/\fR
|
||||||
[1;34musage: [0m[1;35mahriman repo\-statistics[0m [[32m\-h[0m] [[36m\-\-chart [33mCHART[0m]
|
usage: ahriman repo\-statistics [\-h] [\-\-chart CHART]
|
||||||
[[32m\-e [33m{package\-outdated,package\-removed,package\-update\-failed,package\-updated}[0m]
|
[\-e {build\-log,package\-held,package\-outdated,package\-removed,package\-status\-changed,package\-update\-failed,package\-updated,service\-status\-changed}]
|
||||||
[[36m\-\-from\-date [33mFROM_DATE[0m] [[36m\-\-limit [33mLIMIT[0m] [[36m\-\-offset [33mOFFSET[0m] [[36m\-\-to\-date [33mTO_DATE[0m]
|
[\-\-from\-date FROM_DATE] [\-\-limit LIMIT] [\-\-offset OFFSET] [\-\-to\-date TO_DATE]
|
||||||
[32m[package][0m
|
[package]
|
||||||
|
|
||||||
fetch repository statistics
|
fetch repository statistics
|
||||||
|
|
||||||
@@ -678,7 +777,7 @@ fetch only events for the specified package
|
|||||||
create updates chart and save it to the specified path
|
create updates chart and save it to the specified path
|
||||||
|
|
||||||
.TP
|
.TP
|
||||||
\fB\-e\fR \fI\,{package\-outdated,package\-removed,package\-update\-failed,package\-updated}\/\fR, \fB\-\-event\fR \fI\,{package\-outdated,package\-removed,package\-update\-failed,package\-updated}\/\fR
|
\fB\-e\fR \fI\,{build\-log,package\-held,package\-outdated,package\-removed,package\-status\-changed,package\-update\-failed,package\-updated,service\-status\-changed}\/\fR, \fB\-\-event\fR \fI\,{build\-log,package\-held,package\-outdated,package\-removed,package\-status\-changed,package\-update\-failed,package\-updated,service\-status\-changed}\/\fR
|
||||||
event type filter
|
event type filter
|
||||||
|
|
||||||
.TP
|
.TP
|
||||||
@@ -698,7 +797,7 @@ skip specified amount of events
|
|||||||
only fetch events which are older than the date
|
only fetch events which are older than the date
|
||||||
|
|
||||||
.SH COMMAND \fI\,'ahriman repo\-status\-update'\/\fR
|
.SH COMMAND \fI\,'ahriman repo\-status\-update'\/\fR
|
||||||
[1;34musage: [0m[1;35mahriman repo\-status\-update[0m [[32m\-h[0m] [[32m\-s [33m{unknown,pending,building,failed,success}[0m]
|
usage: ahriman repo\-status\-update [\-h] [\-s {unknown,pending,building,failed,success}]
|
||||||
|
|
||||||
update repository status on the status page
|
update repository status on the status page
|
||||||
|
|
||||||
@@ -708,12 +807,12 @@ update repository status on the status page
|
|||||||
new status
|
new status
|
||||||
|
|
||||||
.SH COMMAND \fI\,'ahriman repo\-sync'\/\fR
|
.SH COMMAND \fI\,'ahriman repo\-sync'\/\fR
|
||||||
[1;34musage: [0m[1;35mahriman repo\-sync[0m [[32m\-h[0m]
|
usage: ahriman repo\-sync [\-h]
|
||||||
|
|
||||||
sync repository files to remote server according to current settings
|
sync repository files to remote server according to current settings
|
||||||
|
|
||||||
.SH COMMAND \fI\,'ahriman repo\-tree'\/\fR
|
.SH COMMAND \fI\,'ahriman repo\-tree'\/\fR
|
||||||
[1;34musage: [0m[1;35mahriman repo\-tree[0m [[32m\-h[0m] [[32m\-p [33mPARTITIONS[0m]
|
usage: ahriman repo\-tree [\-h] [\-p PARTITIONS]
|
||||||
|
|
||||||
dump repository tree based on packages dependencies
|
dump repository tree based on packages dependencies
|
||||||
|
|
||||||
@@ -723,7 +822,7 @@ dump repository tree based on packages dependencies
|
|||||||
also divide packages by independent partitions
|
also divide packages by independent partitions
|
||||||
|
|
||||||
.SH COMMAND \fI\,'ahriman repo\-triggers'\/\fR
|
.SH COMMAND \fI\,'ahriman repo\-triggers'\/\fR
|
||||||
[1;34musage: [0m[1;35mahriman repo\-triggers[0m [[32m\-h[0m] [32m[trigger ...][0m
|
usage: ahriman repo\-triggers [\-h] [trigger ...]
|
||||||
|
|
||||||
run triggers on empty build result as configured by settings
|
run triggers on empty build result as configured by settings
|
||||||
|
|
||||||
@@ -732,10 +831,10 @@ run triggers on empty build result as configured by settings
|
|||||||
instead of running all triggers as set by configuration, just process specified ones in order of mention
|
instead of running all triggers as set by configuration, just process specified ones in order of mention
|
||||||
|
|
||||||
.SH COMMAND \fI\,'ahriman repo\-update'\/\fR
|
.SH COMMAND \fI\,'ahriman repo\-update'\/\fR
|
||||||
[1;34musage: [0m[1;35mahriman repo\-update[0m [[32m\-h[0m] [[36m\-\-aur | \-\-no\-aur[0m] [[36m\-\-changes | \-\-no\-changes[0m] [[36m\-\-check\-files | \-\-no\-check\-files[0m]
|
usage: ahriman repo\-update [\-h] [\-\-aur | \-\-no\-aur] [\-\-changes | \-\-no\-changes] [\-\-check\-files | \-\-no\-check\-files]
|
||||||
[[36m\-\-dependencies | \-\-no\-dependencies[0m] [[36m\-\-dry\-run[0m] [[32m\-e[0m] [[36m\-\-increment | \-\-no\-increment[0m]
|
[\-\-dependencies | \-\-no\-dependencies] [\-\-dry\-run] [\-e] [\-\-increment | \-\-no\-increment]
|
||||||
[[36m\-\-local | \-\-no\-local[0m] [[36m\-\-manual | \-\-no\-manual[0m] [[32m\-u [33mUSERNAME[0m] [[36m\-\-vcs | \-\-no\-vcs[0m] [[32m\-y[0m]
|
[\-\-local | \-\-no\-local] [\-\-manual | \-\-no\-manual] [\-u USERNAME] [\-\-vcs | \-\-no\-vcs] [\-y]
|
||||||
[32m[package ...][0m
|
[package ...]
|
||||||
|
|
||||||
check for packages updates and run build process if requested
|
check for packages updates and run build process if requested
|
||||||
|
|
||||||
@@ -793,8 +892,8 @@ fetch actual version of VCS packages
|
|||||||
download fresh package databases from the mirror before actions, \-yy to force refresh even if up to date
|
download fresh package databases from the mirror before actions, \-yy to force refresh even if up to date
|
||||||
|
|
||||||
.SH COMMAND \fI\,'ahriman service\-clean'\/\fR
|
.SH COMMAND \fI\,'ahriman service\-clean'\/\fR
|
||||||
[1;34musage: [0m[1;35mahriman service\-clean[0m [[32m\-h[0m] [[36m\-\-cache | \-\-no\-cache[0m] [[36m\-\-chroot | \-\-no\-chroot[0m] [[36m\-\-manual | \-\-no\-manual[0m]
|
usage: ahriman service\-clean [\-h] [\-\-cache | \-\-no\-cache] [\-\-chroot | \-\-no\-chroot] [\-\-manual | \-\-no\-manual]
|
||||||
[[36m\-\-packages | \-\-no\-packages[0m] [[36m\-\-pacman | \-\-no\-pacman[0m]
|
[\-\-packages | \-\-no\-packages] [\-\-pacman | \-\-no\-pacman]
|
||||||
|
|
||||||
remove local caches
|
remove local caches
|
||||||
|
|
||||||
@@ -820,7 +919,7 @@ clear directory with built packages
|
|||||||
clear directory with pacman local database cache
|
clear directory with pacman local database cache
|
||||||
|
|
||||||
.SH COMMAND \fI\,'ahriman service\-config'\/\fR
|
.SH COMMAND \fI\,'ahriman service\-config'\/\fR
|
||||||
[1;34musage: [0m[1;35mahriman service\-config[0m [[32m\-h[0m] [[36m\-\-info | \-\-no\-info[0m] [[36m\-\-secure | \-\-no\-secure[0m] [32m[section][0m [32m[key][0m
|
usage: ahriman service\-config [\-h] [\-\-info | \-\-no\-info] [\-\-secure | \-\-no\-secure] [section] [key]
|
||||||
|
|
||||||
dump configuration for the specified architecture
|
dump configuration for the specified architecture
|
||||||
|
|
||||||
@@ -842,7 +941,7 @@ show additional information, e.g. configuration files
|
|||||||
hide passwords and secrets from output
|
hide passwords and secrets from output
|
||||||
|
|
||||||
.SH COMMAND \fI\,'ahriman service\-config\-validate'\/\fR
|
.SH COMMAND \fI\,'ahriman service\-config\-validate'\/\fR
|
||||||
[1;34musage: [0m[1;35mahriman service\-config\-validate[0m [[32m\-h[0m] [[32m\-e[0m]
|
usage: ahriman service\-config\-validate [\-h] [\-e]
|
||||||
|
|
||||||
validate configuration and print found errors
|
validate configuration and print found errors
|
||||||
|
|
||||||
@@ -852,7 +951,7 @@ validate configuration and print found errors
|
|||||||
return non\-zero exit status if configuration is invalid
|
return non\-zero exit status if configuration is invalid
|
||||||
|
|
||||||
.SH COMMAND \fI\,'ahriman service\-key\-import'\/\fR
|
.SH COMMAND \fI\,'ahriman service\-key\-import'\/\fR
|
||||||
[1;34musage: [0m[1;35mahriman service\-key\-import[0m [[32m\-h[0m] [[36m\-\-key\-server [33mKEY_SERVER[0m] [32mkey[0m
|
usage: ahriman service\-key\-import [\-h] [\-\-key\-server KEY_SERVER] key
|
||||||
|
|
||||||
import PGP key from public sources to the repository user
|
import PGP key from public sources to the repository user
|
||||||
|
|
||||||
@@ -866,7 +965,7 @@ PGP key to import from public server
|
|||||||
key server for key import
|
key server for key import
|
||||||
|
|
||||||
.SH COMMAND \fI\,'ahriman service\-repositories'\/\fR
|
.SH COMMAND \fI\,'ahriman service\-repositories'\/\fR
|
||||||
[1;34musage: [0m[1;35mahriman service\-repositories[0m [[32m\-h[0m] [[36m\-\-id\-only | \-\-no\-id\-only[0m]
|
usage: ahriman service\-repositories [\-h] [\-\-id\-only | \-\-no\-id\-only]
|
||||||
|
|
||||||
list all available repositories
|
list all available repositories
|
||||||
|
|
||||||
@@ -876,7 +975,7 @@ list all available repositories
|
|||||||
show machine readable identifier instead
|
show machine readable identifier instead
|
||||||
|
|
||||||
.SH COMMAND \fI\,'ahriman service\-run'\/\fR
|
.SH COMMAND \fI\,'ahriman service\-run'\/\fR
|
||||||
[1;34musage: [0m[1;35mahriman service\-run[0m [[32m\-h[0m] [32mcommand [command ...][0m
|
usage: ahriman service\-run [\-h] command [command ...]
|
||||||
|
|
||||||
run multiple commands on success run of the previous command
|
run multiple commands on success run of the previous command
|
||||||
|
|
||||||
@@ -885,11 +984,11 @@ run multiple commands on success run of the previous command
|
|||||||
command to be run (quoted) without ``ahriman``
|
command to be run (quoted) without ``ahriman``
|
||||||
|
|
||||||
.SH COMMAND \fI\,'ahriman service\-setup'\/\fR
|
.SH COMMAND \fI\,'ahriman service\-setup'\/\fR
|
||||||
[1;34musage: [0m[1;35mahriman service\-setup[0m [[32m\-h[0m] [[36m\-\-build\-as\-user [33mBUILD_AS_USER[0m] [[36m\-\-from\-configuration [33mFROM_CONFIGURATION[0m]
|
usage: ahriman service\-setup [\-h] [\-\-build\-as\-user BUILD_AS_USER] [\-\-from\-configuration FROM_CONFIGURATION]
|
||||||
[[36m\-\-generate\-salt | \-\-no\-generate\-salt[0m] [[36m\-\-makeflags\-jobs | \-\-no\-makeflags\-jobs[0m]
|
[\-\-generate\-salt | \-\-no\-generate\-salt] [\-\-makeflags\-jobs | \-\-no\-makeflags\-jobs]
|
||||||
[[36m\-\-mirror [33mMIRROR[0m] [[36m\-\-multilib | \-\-no\-multilib[0m] [36m\-\-packager [33mPACKAGER[0m [[36m\-\-server [33mSERVER[0m]
|
[\-\-mirror MIRROR] [\-\-multilib | \-\-no\-multilib] \-\-packager PACKAGER [\-\-server SERVER]
|
||||||
[[36m\-\-sign\-key [33mSIGN_KEY[0m] [[36m\-\-sign\-target [33m{disabled,packages,repository}[0m] [[36m\-\-web\-port [33mWEB_PORT[0m]
|
[\-\-sign\-key SIGN_KEY] [\-\-sign\-target {disabled,packages,repository}] [\-\-web\-port WEB_PORT]
|
||||||
[[36m\-\-web\-unix\-socket [33mWEB_UNIX_SOCKET[0m]
|
[\-\-web\-unix\-socket WEB_UNIX_SOCKET]
|
||||||
|
|
||||||
create initial service configuration, requires root
|
create initial service configuration, requires root
|
||||||
|
|
||||||
@@ -943,7 +1042,7 @@ port of the web service
|
|||||||
path to unix socket used for interprocess communications
|
path to unix socket used for interprocess communications
|
||||||
|
|
||||||
.SH COMMAND \fI\,'ahriman service\-shell'\/\fR
|
.SH COMMAND \fI\,'ahriman service\-shell'\/\fR
|
||||||
[1;34musage: [0m[1;35mahriman service\-shell[0m [[32m\-h[0m] [[32m\-o [33mOUTPUT[0m] [32m[code][0m
|
usage: ahriman service\-shell [\-h] [\-o OUTPUT] [code]
|
||||||
|
|
||||||
drop into python shell
|
drop into python shell
|
||||||
|
|
||||||
@@ -957,13 +1056,13 @@ instead of dropping into shell, just execute the specified code
|
|||||||
output commands and result to the file
|
output commands and result to the file
|
||||||
|
|
||||||
.SH COMMAND \fI\,'ahriman service\-tree\-migrate'\/\fR
|
.SH COMMAND \fI\,'ahriman service\-tree\-migrate'\/\fR
|
||||||
[1;34musage: [0m[1;35mahriman service\-tree\-migrate[0m [[32m\-h[0m]
|
usage: ahriman service\-tree\-migrate [\-h]
|
||||||
|
|
||||||
migrate repository tree between versions
|
migrate repository tree between versions
|
||||||
|
|
||||||
.SH COMMAND \fI\,'ahriman user\-add'\/\fR
|
.SH COMMAND \fI\,'ahriman user\-add'\/\fR
|
||||||
[1;34musage: [0m[1;35mahriman user\-add[0m [[32m\-h[0m] [[36m\-\-key [33mKEY[0m] [[36m\-\-packager [33mPACKAGER[0m] [[32m\-p [33mPASSWORD[0m] [[32m\-R [33m{unauthorized,read,reporter,full}[0m]
|
usage: ahriman user\-add [\-h] [\-\-key KEY] [\-\-packager PACKAGER] [\-p PASSWORD] [\-R {unauthorized,read,reporter,full}]
|
||||||
[32musername[0m
|
username
|
||||||
|
|
||||||
update user for web services with the given password and role. In case if password was not entered it will be asked interactively
|
update user for web services with the given password and role. In case if password was not entered it will be asked interactively
|
||||||
|
|
||||||
@@ -990,7 +1089,7 @@ authorization type.
|
|||||||
user access level
|
user access level
|
||||||
|
|
||||||
.SH COMMAND \fI\,'ahriman user\-list'\/\fR
|
.SH COMMAND \fI\,'ahriman user\-list'\/\fR
|
||||||
[1;34musage: [0m[1;35mahriman user\-list[0m [[32m\-h[0m] [[32m\-e[0m] [[32m\-R [33m{unauthorized,read,reporter,full}[0m] [32m[username][0m
|
usage: ahriman user\-list [\-h] [\-e] [\-R {unauthorized,read,reporter,full}] [username]
|
||||||
|
|
||||||
list users from the user mapping and their roles
|
list users from the user mapping and their roles
|
||||||
|
|
||||||
@@ -1008,7 +1107,7 @@ return non\-zero exit status if result is empty
|
|||||||
filter users by role
|
filter users by role
|
||||||
|
|
||||||
.SH COMMAND \fI\,'ahriman user\-remove'\/\fR
|
.SH COMMAND \fI\,'ahriman user\-remove'\/\fR
|
||||||
[1;34musage: [0m[1;35mahriman user\-remove[0m [[32m\-h[0m] [32musername[0m
|
usage: ahriman user\-remove [\-h] username
|
||||||
|
|
||||||
remove user from the user mapping and update the configuration
|
remove user from the user mapping and update the configuration
|
||||||
|
|
||||||
@@ -1017,12 +1116,12 @@ remove user from the user mapping and update the configuration
|
|||||||
username for web service
|
username for web service
|
||||||
|
|
||||||
.SH COMMAND \fI\,'ahriman web'\/\fR
|
.SH COMMAND \fI\,'ahriman web'\/\fR
|
||||||
[1;34musage: [0m[1;35mahriman web[0m [[32m\-h[0m]
|
usage: ahriman web [\-h]
|
||||||
|
|
||||||
start web server
|
start web server
|
||||||
|
|
||||||
.SH COMMAND \fI\,'ahriman web\-reload'\/\fR
|
.SH COMMAND \fI\,'ahriman web\-reload'\/\fR
|
||||||
[1;34musage: [0m[1;35mahriman web\-reload[0m [[32m\-h[0m]
|
usage: ahriman web\-reload [\-h]
|
||||||
|
|
||||||
reload web server configuration
|
reload web server configuration
|
||||||
|
|
||||||
|
|||||||
@@ -20,13 +20,19 @@ _shtab_ahriman_commands() {
|
|||||||
"init:create initial service configuration, requires root"
|
"init:create initial service configuration, requires root"
|
||||||
"key-import:import PGP key from public sources to the repository user"
|
"key-import:import PGP key from public sources to the repository user"
|
||||||
"package-add:add existing or new package to the build queue"
|
"package-add:add existing or new package to the build queue"
|
||||||
|
"package-archives:list available archive versions for the package"
|
||||||
"package-changes:retrieve package changes stored in database"
|
"package-changes:retrieve package changes stored in database"
|
||||||
"package-changes-remove:remove the package changes stored remotely"
|
"package-changes-remove:remove the package changes stored remotely"
|
||||||
"package-copy:copy package and its metadata from another repository"
|
"package-copy:copy package and its metadata from another repository"
|
||||||
|
"package-hold:hold package from automatic updates"
|
||||||
|
"package-pkgbuild:retrieve package PKGBUILD stored in database"
|
||||||
|
"package-pkgbuild-remove:remove the package PKGBUILD stored remotely"
|
||||||
"package-remove:remove package from the repository"
|
"package-remove:remove package from the repository"
|
||||||
|
"package-rollback:rollback package to specified version from archives"
|
||||||
"package-status:request status of the package"
|
"package-status:request status of the package"
|
||||||
"package-status-remove:remove the package from the status page"
|
"package-status-remove:remove the package from the status page"
|
||||||
"package-status-update:update package status on the status page"
|
"package-status-update:update package status on the status page"
|
||||||
|
"package-unhold:remove package hold, allowing automatic updates"
|
||||||
"package-update:add existing or new package to the build queue"
|
"package-update:add existing or new package to the build queue"
|
||||||
"patch-add:create or update patched PKGBUILD function or variable"
|
"patch-add:create or update patched PKGBUILD function or variable"
|
||||||
"patch-list:list available patches for the package"
|
"patch-list:list available patches for the package"
|
||||||
@@ -110,10 +116,10 @@ _shtab_ahriman_add_options=(
|
|||||||
{-e,--exit-code}"[return non-zero exit status if result is empty (default\: False)]"
|
{-e,--exit-code}"[return non-zero exit status if result is empty (default\: False)]"
|
||||||
{--increment,--no-increment}"[increment package release (pkgrel) version on duplicate (default\: True)]:increment:"
|
{--increment,--no-increment}"[increment package release (pkgrel) version on duplicate (default\: True)]:increment:"
|
||||||
{-n,--now}"[run update function after (default\: False)]"
|
{-n,--now}"[run update function after (default\: False)]"
|
||||||
"*"{-y,--refresh}"[download fresh package databases from the mirror before actions, -yy to force refresh even if up to date (default\: False)]"
|
|
||||||
{-s,--source}"[explicitly specify the package source for this command (default\: auto)]:source:(auto archive aur directory local remote repository)"
|
{-s,--source}"[explicitly specify the package source for this command (default\: auto)]:source:(auto archive aur directory local remote repository)"
|
||||||
{-u,--username}"[build as user (default\: None)]:username:"
|
{-u,--username}"[build as user (default\: None)]:username:"
|
||||||
"*"{-v,--variable}"[apply specified makepkg variables to the next build (default\: None)]:variable:"
|
"*"{-v,--variable}"[apply specified makepkg variables to the next build (default\: None)]:variable:"
|
||||||
|
"*"{-y,--refresh}"[download fresh package databases from the mirror before actions, -yy to force refresh even if up to date (default\: False)]"
|
||||||
"(*):package source (base name, path to local files, remote URL):"
|
"(*):package source (base name, path to local files, remote URL):"
|
||||||
)
|
)
|
||||||
|
|
||||||
@@ -272,16 +278,26 @@ _shtab_ahriman_package_add_options=(
|
|||||||
{-e,--exit-code}"[return non-zero exit status if result is empty (default\: False)]"
|
{-e,--exit-code}"[return non-zero exit status if result is empty (default\: False)]"
|
||||||
{--increment,--no-increment}"[increment package release (pkgrel) version on duplicate (default\: True)]:increment:"
|
{--increment,--no-increment}"[increment package release (pkgrel) version on duplicate (default\: True)]:increment:"
|
||||||
{-n,--now}"[run update function after (default\: False)]"
|
{-n,--now}"[run update function after (default\: False)]"
|
||||||
"*"{-y,--refresh}"[download fresh package databases from the mirror before actions, -yy to force refresh even if up to date (default\: False)]"
|
|
||||||
{-s,--source}"[explicitly specify the package source for this command (default\: auto)]:source:(auto archive aur directory local remote repository)"
|
{-s,--source}"[explicitly specify the package source for this command (default\: auto)]:source:(auto archive aur directory local remote repository)"
|
||||||
{-u,--username}"[build as user (default\: None)]:username:"
|
{-u,--username}"[build as user (default\: None)]:username:"
|
||||||
"*"{-v,--variable}"[apply specified makepkg variables to the next build (default\: None)]:variable:"
|
"*"{-v,--variable}"[apply specified makepkg variables to the next build (default\: None)]:variable:"
|
||||||
|
"*"{-y,--refresh}"[download fresh package databases from the mirror before actions, -yy to force refresh even if up to date (default\: False)]"
|
||||||
"(*):package source (base name, path to local files, remote URL):"
|
"(*):package source (base name, path to local files, remote URL):"
|
||||||
)
|
)
|
||||||
|
|
||||||
# guard to ensure default positional specs are added only once per session
|
# guard to ensure default positional specs are added only once per session
|
||||||
_shtab_ahriman_package_add_defaults_added=0
|
_shtab_ahriman_package_add_defaults_added=0
|
||||||
|
|
||||||
|
_shtab_ahriman_package_archives_options=(
|
||||||
|
"(- : *)"{-h,--help}"[show this help message and exit]"
|
||||||
|
{-e,--exit-code}"[return non-zero exit status if result is empty (default\: False)]"
|
||||||
|
{--info,--no-info}"[show additional package information (default\: False)]:info:"
|
||||||
|
":package base:"
|
||||||
|
)
|
||||||
|
|
||||||
|
# guard to ensure default positional specs are added only once per session
|
||||||
|
_shtab_ahriman_package_archives_defaults_added=0
|
||||||
|
|
||||||
_shtab_ahriman_package_changes_options=(
|
_shtab_ahriman_package_changes_options=(
|
||||||
"(- : *)"{-h,--help}"[show this help message and exit]"
|
"(- : *)"{-h,--help}"[show this help message and exit]"
|
||||||
{-e,--exit-code}"[return non-zero exit status if result is empty (default\: False)]"
|
{-e,--exit-code}"[return non-zero exit status if result is empty (default\: False)]"
|
||||||
@@ -310,6 +326,31 @@ _shtab_ahriman_package_copy_options=(
|
|||||||
# guard to ensure default positional specs are added only once per session
|
# guard to ensure default positional specs are added only once per session
|
||||||
_shtab_ahriman_package_copy_defaults_added=0
|
_shtab_ahriman_package_copy_defaults_added=0
|
||||||
|
|
||||||
|
_shtab_ahriman_package_hold_options=(
|
||||||
|
"(- : *)"{-h,--help}"[show this help message and exit]"
|
||||||
|
"(*):package base:"
|
||||||
|
)
|
||||||
|
|
||||||
|
# guard to ensure default positional specs are added only once per session
|
||||||
|
_shtab_ahriman_package_hold_defaults_added=0
|
||||||
|
|
||||||
|
_shtab_ahriman_package_pkgbuild_options=(
|
||||||
|
"(- : *)"{-h,--help}"[show this help message and exit]"
|
||||||
|
{-e,--exit-code}"[return non-zero exit status if result is empty (default\: False)]"
|
||||||
|
":package base:"
|
||||||
|
)
|
||||||
|
|
||||||
|
# guard to ensure default positional specs are added only once per session
|
||||||
|
_shtab_ahriman_package_pkgbuild_defaults_added=0
|
||||||
|
|
||||||
|
_shtab_ahriman_package_pkgbuild_remove_options=(
|
||||||
|
"(- : *)"{-h,--help}"[show this help message and exit]"
|
||||||
|
":package base:"
|
||||||
|
)
|
||||||
|
|
||||||
|
# guard to ensure default positional specs are added only once per session
|
||||||
|
_shtab_ahriman_package_pkgbuild_remove_defaults_added=0
|
||||||
|
|
||||||
_shtab_ahriman_package_remove_options=(
|
_shtab_ahriman_package_remove_options=(
|
||||||
"(- : *)"{-h,--help}"[show this help message and exit]"
|
"(- : *)"{-h,--help}"[show this help message and exit]"
|
||||||
"(*):package name or base:"
|
"(*):package name or base:"
|
||||||
@@ -318,6 +359,17 @@ _shtab_ahriman_package_remove_options=(
|
|||||||
# guard to ensure default positional specs are added only once per session
|
# guard to ensure default positional specs are added only once per session
|
||||||
_shtab_ahriman_package_remove_defaults_added=0
|
_shtab_ahriman_package_remove_defaults_added=0
|
||||||
|
|
||||||
|
_shtab_ahriman_package_rollback_options=(
|
||||||
|
"(- : *)"{-h,--help}"[show this help message and exit]"
|
||||||
|
{--hold,--no-hold}"[hold package afterwards (default\: True)]:hold:"
|
||||||
|
{-u,--username}"[build as user (default\: None)]:username:"
|
||||||
|
":package base:"
|
||||||
|
":package version:"
|
||||||
|
)
|
||||||
|
|
||||||
|
# guard to ensure default positional specs are added only once per session
|
||||||
|
_shtab_ahriman_package_rollback_defaults_added=0
|
||||||
|
|
||||||
_shtab_ahriman_package_status_options=(
|
_shtab_ahriman_package_status_options=(
|
||||||
"(- : *)"{-h,--help}"[show this help message and exit]"
|
"(- : *)"{-h,--help}"[show this help message and exit]"
|
||||||
"--ahriman[get service status itself (default\: False)]"
|
"--ahriman[get service status itself (default\: False)]"
|
||||||
@@ -347,6 +399,14 @@ _shtab_ahriman_package_status_update_options=(
|
|||||||
# guard to ensure default positional specs are added only once per session
|
# guard to ensure default positional specs are added only once per session
|
||||||
_shtab_ahriman_package_status_update_defaults_added=0
|
_shtab_ahriman_package_status_update_defaults_added=0
|
||||||
|
|
||||||
|
_shtab_ahriman_package_unhold_options=(
|
||||||
|
"(- : *)"{-h,--help}"[show this help message and exit]"
|
||||||
|
"(*):package base:"
|
||||||
|
)
|
||||||
|
|
||||||
|
# guard to ensure default positional specs are added only once per session
|
||||||
|
_shtab_ahriman_package_unhold_defaults_added=0
|
||||||
|
|
||||||
_shtab_ahriman_package_update_options=(
|
_shtab_ahriman_package_update_options=(
|
||||||
"(- : *)"{-h,--help}"[show this help message and exit]"
|
"(- : *)"{-h,--help}"[show this help message and exit]"
|
||||||
{--changes,--no-changes}"[calculate changes from the latest known commit if available (default\: True)]:changes:"
|
{--changes,--no-changes}"[calculate changes from the latest known commit if available (default\: True)]:changes:"
|
||||||
@@ -354,10 +414,10 @@ _shtab_ahriman_package_update_options=(
|
|||||||
{-e,--exit-code}"[return non-zero exit status if result is empty (default\: False)]"
|
{-e,--exit-code}"[return non-zero exit status if result is empty (default\: False)]"
|
||||||
{--increment,--no-increment}"[increment package release (pkgrel) version on duplicate (default\: True)]:increment:"
|
{--increment,--no-increment}"[increment package release (pkgrel) version on duplicate (default\: True)]:increment:"
|
||||||
{-n,--now}"[run update function after (default\: False)]"
|
{-n,--now}"[run update function after (default\: False)]"
|
||||||
"*"{-y,--refresh}"[download fresh package databases from the mirror before actions, -yy to force refresh even if up to date (default\: False)]"
|
|
||||||
{-s,--source}"[explicitly specify the package source for this command (default\: auto)]:source:(auto archive aur directory local remote repository)"
|
{-s,--source}"[explicitly specify the package source for this command (default\: auto)]:source:(auto archive aur directory local remote repository)"
|
||||||
{-u,--username}"[build as user (default\: None)]:username:"
|
{-u,--username}"[build as user (default\: None)]:username:"
|
||||||
"*"{-v,--variable}"[apply specified makepkg variables to the next build (default\: None)]:variable:"
|
"*"{-v,--variable}"[apply specified makepkg variables to the next build (default\: None)]:variable:"
|
||||||
|
"*"{-y,--refresh}"[download fresh package databases from the mirror before actions, -yy to force refresh even if up to date (default\: False)]"
|
||||||
"(*):package source (base name, path to local files, remote URL):"
|
"(*):package source (base name, path to local files, remote URL):"
|
||||||
)
|
)
|
||||||
|
|
||||||
@@ -605,7 +665,7 @@ _shtab_ahriman_repo_sign_defaults_added=0
|
|||||||
_shtab_ahriman_repo_statistics_options=(
|
_shtab_ahriman_repo_statistics_options=(
|
||||||
"(- : *)"{-h,--help}"[show this help message and exit]"
|
"(- : *)"{-h,--help}"[show this help message and exit]"
|
||||||
"--chart[create updates chart and save it to the specified path (default\: None)]:chart:"
|
"--chart[create updates chart and save it to the specified path (default\: None)]:chart:"
|
||||||
{-e,--event}"[event type filter (default\: package-updated)]:event:(package-outdated package-removed package-update-failed package-updated)"
|
{-e,--event}"[event type filter (default\: package-updated)]:event:(build-log package-held package-outdated package-removed package-status-changed package-update-failed package-updated service-status-changed)"
|
||||||
"--from-date[only fetch events which are newer than the date (default\: None)]:from_date:"
|
"--from-date[only fetch events which are newer than the date (default\: None)]:from_date:"
|
||||||
"--limit[limit response by specified amount of events (default\: -1)]:limit:"
|
"--limit[limit response by specified amount of events (default\: -1)]:limit:"
|
||||||
"--offset[skip specified amount of events (default\: 0)]:offset:"
|
"--offset[skip specified amount of events (default\: 0)]:offset:"
|
||||||
@@ -953,13 +1013,19 @@ _shtab_ahriman() {
|
|||||||
init) _arguments -C -s $_shtab_ahriman_init_options ;;
|
init) _arguments -C -s $_shtab_ahriman_init_options ;;
|
||||||
key-import) _arguments -C -s $_shtab_ahriman_key_import_options ;;
|
key-import) _arguments -C -s $_shtab_ahriman_key_import_options ;;
|
||||||
package-add) _arguments -C -s $_shtab_ahriman_package_add_options ;;
|
package-add) _arguments -C -s $_shtab_ahriman_package_add_options ;;
|
||||||
|
package-archives) _arguments -C -s $_shtab_ahriman_package_archives_options ;;
|
||||||
package-changes) _arguments -C -s $_shtab_ahriman_package_changes_options ;;
|
package-changes) _arguments -C -s $_shtab_ahriman_package_changes_options ;;
|
||||||
package-changes-remove) _arguments -C -s $_shtab_ahriman_package_changes_remove_options ;;
|
package-changes-remove) _arguments -C -s $_shtab_ahriman_package_changes_remove_options ;;
|
||||||
package-copy) _arguments -C -s $_shtab_ahriman_package_copy_options ;;
|
package-copy) _arguments -C -s $_shtab_ahriman_package_copy_options ;;
|
||||||
|
package-hold) _arguments -C -s $_shtab_ahriman_package_hold_options ;;
|
||||||
|
package-pkgbuild) _arguments -C -s $_shtab_ahriman_package_pkgbuild_options ;;
|
||||||
|
package-pkgbuild-remove) _arguments -C -s $_shtab_ahriman_package_pkgbuild_remove_options ;;
|
||||||
package-remove) _arguments -C -s $_shtab_ahriman_package_remove_options ;;
|
package-remove) _arguments -C -s $_shtab_ahriman_package_remove_options ;;
|
||||||
|
package-rollback) _arguments -C -s $_shtab_ahriman_package_rollback_options ;;
|
||||||
package-status) _arguments -C -s $_shtab_ahriman_package_status_options ;;
|
package-status) _arguments -C -s $_shtab_ahriman_package_status_options ;;
|
||||||
package-status-remove) _arguments -C -s $_shtab_ahriman_package_status_remove_options ;;
|
package-status-remove) _arguments -C -s $_shtab_ahriman_package_status_remove_options ;;
|
||||||
package-status-update) _arguments -C -s $_shtab_ahriman_package_status_update_options ;;
|
package-status-update) _arguments -C -s $_shtab_ahriman_package_status_update_options ;;
|
||||||
|
package-unhold) _arguments -C -s $_shtab_ahriman_package_unhold_options ;;
|
||||||
package-update) _arguments -C -s $_shtab_ahriman_package_update_options ;;
|
package-update) _arguments -C -s $_shtab_ahriman_package_update_options ;;
|
||||||
patch-add) _arguments -C -s $_shtab_ahriman_patch_add_options ;;
|
patch-add) _arguments -C -s $_shtab_ahriman_patch_add_options ;;
|
||||||
patch-list) _arguments -C -s $_shtab_ahriman_patch_list_options ;;
|
patch-list) _arguments -C -s $_shtab_ahriman_patch_list_options ;;
|
||||||
|
|||||||
@@ -6,13 +6,6 @@ build-backend = "hatchling.build"
|
|||||||
|
|
||||||
[project]
|
[project]
|
||||||
name = "ahriman-core"
|
name = "ahriman-core"
|
||||||
description = "ArcH linux ReposItory MANager, core package"
|
|
||||||
readme = "../README.md"
|
|
||||||
requires-python = ">=3.13"
|
|
||||||
license = { file = "../COPYING" }
|
|
||||||
authors = [
|
|
||||||
{ name = "ahriman team" },
|
|
||||||
]
|
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"bcrypt",
|
"bcrypt",
|
||||||
"filelock",
|
"filelock",
|
||||||
@@ -20,9 +13,11 @@ dependencies = [
|
|||||||
"pyelftools",
|
"pyelftools",
|
||||||
"requests",
|
"requests",
|
||||||
]
|
]
|
||||||
|
description = "ArcH linux ReposItory MANager, core package"
|
||||||
dynamic = [
|
dynamic = [
|
||||||
"version",
|
"version",
|
||||||
]
|
]
|
||||||
|
requires-python = ">=3.14"
|
||||||
|
|
||||||
[project.optional-dependencies]
|
[project.optional-dependencies]
|
||||||
journald = [
|
journald = [
|
||||||
@@ -56,11 +51,6 @@ validator = [
|
|||||||
[project.scripts]
|
[project.scripts]
|
||||||
ahriman = "ahriman.application.ahriman:run"
|
ahriman = "ahriman.application.ahriman:run"
|
||||||
|
|
||||||
[project.urls]
|
|
||||||
Documentation = "https://ahriman.readthedocs.io/"
|
|
||||||
Repository = "https://github.com/arcan1s/ahriman"
|
|
||||||
Changelog = "https://github.com/arcan1s/ahriman/releases"
|
|
||||||
|
|
||||||
[tool.hatch.build.targets.wheel]
|
[tool.hatch.build.targets.wheel]
|
||||||
packages = [
|
packages = [
|
||||||
"src/ahriman",
|
"src/ahriman",
|
||||||
|
|||||||
@@ -17,4 +17,4 @@
|
|||||||
# You should have received a copy of the GNU General Public License
|
# You should have received a copy of the GNU General Public License
|
||||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
#
|
#
|
||||||
__version__ = "2.20.0"
|
__version__ = "2.21.1"
|
||||||
|
|||||||
@@ -19,6 +19,7 @@
|
|||||||
#
|
#
|
||||||
import argparse
|
import argparse
|
||||||
|
|
||||||
|
from functools import partial
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
|
|
||||||
import ahriman.application.handlers
|
import ahriman.application.handlers
|
||||||
@@ -34,10 +35,13 @@ from ahriman.models.log_handler import LogHandler
|
|||||||
__all__: list[str] = []
|
__all__: list[str] = []
|
||||||
|
|
||||||
|
|
||||||
def _parser() -> argparse.ArgumentParser:
|
def _parser(*, color: bool = False) -> argparse.ArgumentParser:
|
||||||
"""
|
"""
|
||||||
command line parser generator
|
command line parser generator
|
||||||
|
|
||||||
|
Args:
|
||||||
|
color(bool, optional): enable colors in help messages (Default value = False)
|
||||||
|
|
||||||
Returns:
|
Returns:
|
||||||
argparse.ArgumentParser: command line parser for the application
|
argparse.ArgumentParser: command line parser for the application
|
||||||
"""
|
"""
|
||||||
@@ -63,7 +67,7 @@ Start web service (requires additional configuration):
|
|||||||
|
|
||||||
>>> ahriman web
|
>>> ahriman web
|
||||||
""",
|
""",
|
||||||
fromfile_prefix_chars="@", formatter_class=_HelpFormatter)
|
fromfile_prefix_chars="@", formatter_class=_HelpFormatter, color=color)
|
||||||
parser.add_argument("-a", "--architecture", help="filter by target architecture")
|
parser.add_argument("-a", "--architecture", help="filter by target architecture")
|
||||||
parser.add_argument("-c", "--configuration", help="configuration path", type=Path,
|
parser.add_argument("-c", "--configuration", help="configuration path", type=Path,
|
||||||
default=Path("/") / "etc" / "ahriman.ini")
|
default=Path("/") / "etc" / "ahriman.ini")
|
||||||
@@ -92,8 +96,9 @@ Start web service (requires additional configuration):
|
|||||||
for handler in implementations(ahriman.application.handlers, Handler):
|
for handler in implementations(ahriman.application.handlers, Handler):
|
||||||
for subparser_parser in handler.arguments:
|
for subparser_parser in handler.arguments:
|
||||||
subparser = subparser_parser(subparsers)
|
subparser = subparser_parser(subparsers)
|
||||||
|
subparser.color = color
|
||||||
subparser.formatter_class = _HelpFormatter
|
subparser.formatter_class = _HelpFormatter
|
||||||
subparser.set_defaults(handler=handler, parser=_parser)
|
subparser.set_defaults(handler=handler, parser=partial(_parser, color=color))
|
||||||
|
|
||||||
# sort actions alphabetically in both choices and help message
|
# sort actions alphabetically in both choices and help message
|
||||||
# pylint: disable=protected-access
|
# pylint: disable=protected-access
|
||||||
@@ -110,7 +115,7 @@ def run() -> int:
|
|||||||
Returns:
|
Returns:
|
||||||
int: application status code
|
int: application status code
|
||||||
"""
|
"""
|
||||||
parser = _parser()
|
parser = _parser(color=True)
|
||||||
args = parser.parse_args()
|
args = parser.parse_args()
|
||||||
|
|
||||||
if args.command is None: # in case of empty command we would like to print help message
|
if args.command is None: # in case of empty command we would like to print help message
|
||||||
|
|||||||
@@ -22,6 +22,7 @@ from ahriman.core.configuration import Configuration
|
|||||||
from ahriman.core.log import LazyLogging
|
from ahriman.core.log import LazyLogging
|
||||||
from ahriman.core.utils import full_version, utcnow
|
from ahriman.core.utils import full_version, utcnow
|
||||||
from ahriman.models.package import Package
|
from ahriman.models.package import Package
|
||||||
|
from ahriman.models.package_source import PackageSource
|
||||||
from ahriman.models.pkgbuild import Pkgbuild
|
from ahriman.models.pkgbuild import Pkgbuild
|
||||||
|
|
||||||
|
|
||||||
@@ -64,7 +65,7 @@ class PackageVersion(LazyLogging):
|
|||||||
|
|
||||||
return full_version(pkgbuild.get("epoch"), pkgbuild["pkgver"], pkgbuild["pkgrel"])
|
return full_version(pkgbuild.get("epoch"), pkgbuild["pkgver"], pkgbuild["pkgrel"])
|
||||||
except Exception:
|
except Exception:
|
||||||
self.logger.exception("cannot determine version of VCS package")
|
self.logger.exception("cannot determine version of VCS package %s", self.package.base)
|
||||||
finally:
|
finally:
|
||||||
# clear log files generated by devtools
|
# clear log files generated by devtools
|
||||||
for log_file in paths.cache_for(self.package.base).glob("*.log"):
|
for log_file in paths.cache_for(self.package.base).glob("*.log"):
|
||||||
@@ -103,9 +104,14 @@ class PackageVersion(LazyLogging):
|
|||||||
Returns:
|
Returns:
|
||||||
bool: ``True`` if the package is out-of-dated and ``False`` otherwise
|
bool: ``True`` if the package is out-of-dated and ``False`` otherwise
|
||||||
"""
|
"""
|
||||||
|
min_allowed_age = configuration.getint("build", "min_age", fallback=0)
|
||||||
|
min_build_date = utcnow().timestamp() - min_allowed_age
|
||||||
|
if remote.remote.source == PackageSource.AUR and PackageVersion(remote).is_newer_than(min_build_date):
|
||||||
|
self.logger.info("package %s was modified too recently, skip update", remote.base)
|
||||||
|
return False
|
||||||
|
|
||||||
vcs_allowed_age = configuration.getint("build", "vcs_allowed_age", fallback=0)
|
vcs_allowed_age = configuration.getint("build", "vcs_allowed_age", fallback=0)
|
||||||
min_vcs_build_date = utcnow().timestamp() - vcs_allowed_age
|
min_vcs_build_date = utcnow().timestamp() - vcs_allowed_age
|
||||||
|
|
||||||
if calculate_version and not self.is_newer_than(min_vcs_build_date):
|
if calculate_version and not self.is_newer_than(min_vcs_build_date):
|
||||||
remote_version = PackageVersion(remote).actual_version(configuration)
|
remote_version = PackageVersion(remote).actual_version(configuration)
|
||||||
else:
|
else:
|
||||||
|
|||||||
@@ -206,7 +206,7 @@ CONFIGURATION_SCHEMA: ConfigurationSchema = {
|
|||||||
"type": "boolean",
|
"type": "boolean",
|
||||||
"coerce": "boolean",
|
"coerce": "boolean",
|
||||||
},
|
},
|
||||||
"makepkg_flags": {
|
"makechrootpkg_flags": {
|
||||||
"type": "list",
|
"type": "list",
|
||||||
"coerce": "list",
|
"coerce": "list",
|
||||||
"schema": {
|
"schema": {
|
||||||
@@ -214,7 +214,12 @@ CONFIGURATION_SCHEMA: ConfigurationSchema = {
|
|||||||
"empty": False,
|
"empty": False,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
"makechrootpkg_flags": {
|
"min_age": {
|
||||||
|
"type": "integer",
|
||||||
|
"coerce": "integer",
|
||||||
|
"min": 0,
|
||||||
|
},
|
||||||
|
"makepkg_flags": {
|
||||||
"type": "list",
|
"type": "list",
|
||||||
"coerce": "list",
|
"coerce": "list",
|
||||||
"schema": {
|
"schema": {
|
||||||
|
|||||||
@@ -113,6 +113,7 @@ class PackageDescription:
|
|||||||
Self: package properties based on source AUR package
|
Self: package properties based on source AUR package
|
||||||
"""
|
"""
|
||||||
return cls(
|
return cls(
|
||||||
|
build_date=int(package.last_modified.timestamp()),
|
||||||
depends=package.depends,
|
depends=package.depends,
|
||||||
make_depends=package.make_depends,
|
make_depends=package.make_depends,
|
||||||
opt_depends=package.opt_depends,
|
opt_depends=package.opt_depends,
|
||||||
|
|||||||
@@ -3,7 +3,6 @@ import pytest
|
|||||||
|
|
||||||
from pytest_mock import MockerFixture
|
from pytest_mock import MockerFixture
|
||||||
|
|
||||||
from ahriman.application.ahriman import _parser
|
|
||||||
from ahriman.application.application import Application
|
from ahriman.application.application import Application
|
||||||
from ahriman.application.help_formatter import _HelpFormatter
|
from ahriman.application.help_formatter import _HelpFormatter
|
||||||
from ahriman.application.lock import Lock
|
from ahriman.application.lock import Lock
|
||||||
@@ -33,18 +32,6 @@ def application(configuration: Configuration, repository: Repository, database:
|
|||||||
return Application(repository_id, configuration, report=False)
|
return Application(repository_id, configuration, report=False)
|
||||||
|
|
||||||
|
|
||||||
@pytest.fixture
|
|
||||||
def args() -> argparse.Namespace:
|
|
||||||
"""
|
|
||||||
fixture for command line arguments
|
|
||||||
|
|
||||||
Returns:
|
|
||||||
argparse.Namespace: command line arguments test instance
|
|
||||||
"""
|
|
||||||
return argparse.Namespace(architecture=None, lock=None, force=False, unsafe=False, report=False,
|
|
||||||
repository=None, repository_id=None, wait_timeout=-1)
|
|
||||||
|
|
||||||
|
|
||||||
@pytest.fixture
|
@pytest.fixture
|
||||||
def formatter() -> _HelpFormatter:
|
def formatter() -> _HelpFormatter:
|
||||||
"""
|
"""
|
||||||
@@ -70,14 +57,3 @@ def lock(args: argparse.Namespace, configuration: Configuration) -> Lock:
|
|||||||
"""
|
"""
|
||||||
_, repository_id = configuration.check_loaded()
|
_, repository_id = configuration.check_loaded()
|
||||||
return Lock(args, repository_id, configuration)
|
return Lock(args, repository_id, configuration)
|
||||||
|
|
||||||
|
|
||||||
@pytest.fixture
|
|
||||||
def parser() -> argparse.ArgumentParser:
|
|
||||||
"""
|
|
||||||
fixture for command line arguments parser
|
|
||||||
|
|
||||||
Returns:
|
|
||||||
argparse.ArgumentParser: command line arguments parser test instance
|
|
||||||
"""
|
|
||||||
return _parser()
|
|
||||||
|
|||||||
@@ -90,6 +90,19 @@ def test_is_outdated_true(package_ahriman: Package, configuration: Configuration
|
|||||||
actual_version_mock.assert_called_once_with(configuration)
|
actual_version_mock.assert_called_once_with(configuration)
|
||||||
|
|
||||||
|
|
||||||
|
def test_is_outdated_aur_cooldown(package_ahriman: Package, configuration: Configuration) -> None:
|
||||||
|
"""
|
||||||
|
must be not outdated if AUR package is modified too recently
|
||||||
|
"""
|
||||||
|
other = Package.from_json(package_ahriman.view())
|
||||||
|
other.version = other.version.replace("-1", "-2")
|
||||||
|
for description in other.packages.values():
|
||||||
|
description.build_date = int(utcnow().timestamp())
|
||||||
|
configuration.set_option("build", "min_age", "3600")
|
||||||
|
|
||||||
|
assert not PackageVersion(package_ahriman).is_outdated(other, configuration)
|
||||||
|
|
||||||
|
|
||||||
def test_is_outdated_no_version_calculation(package_ahriman: Package, configuration: Configuration,
|
def test_is_outdated_no_version_calculation(package_ahriman: Package, configuration: Configuration,
|
||||||
mocker: MockerFixture) -> None:
|
mocker: MockerFixture) -> None:
|
||||||
"""
|
"""
|
||||||
|
|||||||
@@ -4,7 +4,6 @@ import pytest
|
|||||||
from ahriman.core.alpm.repo import Repo
|
from ahriman.core.alpm.repo import Repo
|
||||||
from ahriman.core.build_tools.task import Task
|
from ahriman.core.build_tools.task import Task
|
||||||
from ahriman.core.configuration import Configuration
|
from ahriman.core.configuration import Configuration
|
||||||
from ahriman.core.sign.gpg import GPG
|
|
||||||
from ahriman.core.tree import Leaf
|
from ahriman.core.tree import Leaf
|
||||||
from ahriman.models.package import Package
|
from ahriman.models.package import Package
|
||||||
from ahriman.models.repository_paths import RepositoryPaths
|
from ahriman.models.repository_paths import RepositoryPaths
|
||||||
@@ -64,20 +63,6 @@ def repo(configuration: Configuration, repository_paths: RepositoryPaths) -> Rep
|
|||||||
return Repo(configuration.get("repository", "name"), repository_paths, [])
|
return Repo(configuration.get("repository", "name"), repository_paths, [])
|
||||||
|
|
||||||
|
|
||||||
@pytest.fixture
|
|
||||||
def gpg(configuration: Configuration) -> GPG:
|
|
||||||
"""
|
|
||||||
fixture for empty GPG
|
|
||||||
|
|
||||||
Args:
|
|
||||||
configuration(Configuration): configuration fixture
|
|
||||||
|
|
||||||
Returns:
|
|
||||||
GPG: GPG test instance
|
|
||||||
"""
|
|
||||||
return GPG(configuration)
|
|
||||||
|
|
||||||
|
|
||||||
@pytest.fixture
|
@pytest.fixture
|
||||||
def task_ahriman(package_ahriman: Package, configuration: Configuration, repository_paths: RepositoryPaths) -> Task:
|
def task_ahriman(package_ahriman: Package, configuration: Configuration, repository_paths: RepositoryPaths) -> Task:
|
||||||
"""
|
"""
|
||||||
|
|||||||
@@ -6,24 +6,14 @@ build-backend = "hatchling.build"
|
|||||||
|
|
||||||
[project]
|
[project]
|
||||||
name = "ahriman-triggers"
|
name = "ahriman-triggers"
|
||||||
description = "ArcH linux ReposItory MANager, additional extensions"
|
|
||||||
readme = "../README.md"
|
|
||||||
requires-python = ">=3.13"
|
|
||||||
license = { file = "../COPYING" }
|
|
||||||
authors = [
|
|
||||||
{ name = "ahriman team" },
|
|
||||||
]
|
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"ahriman-core",
|
"ahriman-core",
|
||||||
]
|
]
|
||||||
|
description = "ArcH linux ReposItory MANager, additional extensions"
|
||||||
dynamic = [
|
dynamic = [
|
||||||
"version",
|
"version",
|
||||||
]
|
]
|
||||||
|
requires-python = ">=3.14"
|
||||||
[project.urls]
|
|
||||||
Documentation = "https://ahriman.readthedocs.io/"
|
|
||||||
Repository = "https://github.com/arcan1s/ahriman"
|
|
||||||
Changelog = "https://github.com/arcan1s/ahriman/releases"
|
|
||||||
|
|
||||||
[tool.hatch.build.targets.wheel]
|
[tool.hatch.build.targets.wheel]
|
||||||
packages = [
|
packages = [
|
||||||
|
|||||||
@@ -6,13 +6,6 @@ build-backend = "hatchling.build"
|
|||||||
|
|
||||||
[project]
|
[project]
|
||||||
name = "ahriman-web"
|
name = "ahriman-web"
|
||||||
description = "ArcH linux ReposItory MANager, web server"
|
|
||||||
readme = "../README.md"
|
|
||||||
requires-python = ">=3.13"
|
|
||||||
license = { file = "../COPYING" }
|
|
||||||
authors = [
|
|
||||||
{ name = "ahriman team" },
|
|
||||||
]
|
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"ahriman-core",
|
"ahriman-core",
|
||||||
"aiohttp",
|
"aiohttp",
|
||||||
@@ -20,9 +13,11 @@ dependencies = [
|
|||||||
"aiohttp_jinja2",
|
"aiohttp_jinja2",
|
||||||
"aiohttp_sse",
|
"aiohttp_sse",
|
||||||
]
|
]
|
||||||
|
description = "ArcH linux ReposItory MANager, web server"
|
||||||
dynamic = [
|
dynamic = [
|
||||||
"version",
|
"version",
|
||||||
]
|
]
|
||||||
|
requires-python = ">=3.14"
|
||||||
|
|
||||||
[project.optional-dependencies]
|
[project.optional-dependencies]
|
||||||
auth = [
|
auth = [
|
||||||
@@ -42,11 +37,6 @@ oauth2 = [
|
|||||||
"aioauth-client",
|
"aioauth-client",
|
||||||
]
|
]
|
||||||
|
|
||||||
[project.urls]
|
|
||||||
Documentation = "https://ahriman.readthedocs.io/"
|
|
||||||
Repository = "https://github.com/arcan1s/ahriman"
|
|
||||||
Changelog = "https://github.com/arcan1s/ahriman/releases"
|
|
||||||
|
|
||||||
[tool.hatch.build.targets.wheel]
|
[tool.hatch.build.targets.wheel]
|
||||||
packages = [
|
packages = [
|
||||||
"src/ahriman",
|
"src/ahriman",
|
||||||
|
|||||||
+4
-4
@@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
pkgbase='ahriman'
|
pkgbase='ahriman'
|
||||||
pkgname=('ahriman' 'ahriman-core' 'ahriman-triggers' 'ahriman-web')
|
pkgname=('ahriman' 'ahriman-core' 'ahriman-triggers' 'ahriman-web')
|
||||||
pkgver=2.20.0
|
pkgver=2.21.1
|
||||||
pkgrel=1
|
pkgrel=1
|
||||||
pkgdesc="ArcH linux ReposItory MANager"
|
pkgdesc="ArcH linux ReposItory MANager"
|
||||||
arch=('any')
|
arch=('any')
|
||||||
@@ -20,9 +20,9 @@ build() {
|
|||||||
npm --prefix "frontend" install --cache "$srcdir/npm-cache"
|
npm --prefix "frontend" install --cache "$srcdir/npm-cache"
|
||||||
npm --prefix "frontend" run build
|
npm --prefix "frontend" run build
|
||||||
|
|
||||||
python -m build --wheel --no-isolation ahriman-core
|
python -m build --wheel --no-isolation "ahriman-core"
|
||||||
python -m build --wheel --no-isolation ahriman-triggers
|
python -m build --wheel --no-isolation "ahriman-triggers"
|
||||||
python -m build --wheel --no-isolation ahriman-web
|
python -m build --wheel --no-isolation "ahriman-web"
|
||||||
}
|
}
|
||||||
|
|
||||||
package_ahriman() {
|
package_ahriman() {
|
||||||
|
|||||||
Vendored
+1419
-1481
File diff suppressed because it is too large
Load Diff
@@ -11,14 +11,6 @@
|
|||||||
# documentation root, use os.path.abspath to make it absolute, like shown here.
|
# documentation root, use os.path.abspath to make it absolute, like shown here.
|
||||||
#
|
#
|
||||||
import datetime
|
import datetime
|
||||||
import sys
|
|
||||||
|
|
||||||
from pathlib import Path
|
|
||||||
|
|
||||||
|
|
||||||
# support package imports
|
|
||||||
basedir = Path(__file__).resolve().parent.parent / "src"
|
|
||||||
sys.path.insert(0, str(basedir))
|
|
||||||
|
|
||||||
|
|
||||||
# -- Project information -----------------------------------------------------
|
# -- Project information -----------------------------------------------------
|
||||||
|
|||||||
@@ -136,6 +136,7 @@ Build related configuration. Group name can refer to architecture, e.g. ``build:
|
|||||||
* ``include_debug_packages`` - distribute debug packages, boolean, optional, default ``yes``.
|
* ``include_debug_packages`` - distribute debug packages, boolean, optional, default ``yes``.
|
||||||
* ``makepkg_flags`` - additional flags passed to ``makepkg`` command, space separated list of strings, optional.
|
* ``makepkg_flags`` - additional flags passed to ``makepkg`` command, space separated list of strings, optional.
|
||||||
* ``makechrootpkg_flags`` - additional flags passed to ``makechrootpkg`` command, space separated list of strings, optional.
|
* ``makechrootpkg_flags`` - additional flags passed to ``makechrootpkg`` command, space separated list of strings, optional.
|
||||||
|
* ``min_age`` - minimal age in seconds since the latest AUR package modification before automatic updates are allowed, integer, optional, default ``0``.
|
||||||
* ``scan_paths`` - paths to be used for implicit dependencies scan, space separated list of strings, optional. If any of those paths is matched against the path, it will be added to the allowed list.
|
* ``scan_paths`` - paths to be used for implicit dependencies scan, space separated list of strings, optional. If any of those paths is matched against the path, it will be added to the allowed list.
|
||||||
* ``triggers`` - list of ``ahriman.core.triggers.Trigger`` class implementation (e.g. ``ahriman.core.report.ReportTrigger ahriman.core.upload.UploadTrigger``) which will be loaded and run at the end of processing, space separated list of strings, optional. You can also specify triggers by their paths, e.g. ``/usr/lib/python3.10/site-packages/ahriman/core/report/report.py.ReportTrigger``. Triggers are run in the order of definition.
|
* ``triggers`` - list of ``ahriman.core.triggers.Trigger`` class implementation (e.g. ``ahriman.core.report.ReportTrigger ahriman.core.upload.UploadTrigger``) which will be loaded and run at the end of processing, space separated list of strings, optional. You can also specify triggers by their paths, e.g. ``/usr/lib/python3.10/site-packages/ahriman/core/report/report.py.ReportTrigger``. Triggers are run in the order of definition.
|
||||||
* ``triggers_known`` - optional list of ``ahriman.core.triggers.Trigger`` class implementations which are not run automatically and used only for trigger discovery and configuration validation.
|
* ``triggers_known`` - optional list of ``ahriman.core.triggers.Trigger`` class implementations which are not run automatically and used only for trigger discovery and configuration validation.
|
||||||
|
|||||||
@@ -2,9 +2,9 @@
|
|||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@emotion/react": ">=11.14.0 <11.15.0",
|
"@emotion/react": ">=11.14.0 <11.15.0",
|
||||||
"@emotion/styled": ">=11.14.0 <11.15.0",
|
"@emotion/styled": ">=11.14.0 <11.15.0",
|
||||||
"@mui/icons-material": ">=7.3.0 <7.4.0",
|
"@mui/icons-material": ">=9.2.0 <9.3.0",
|
||||||
"@mui/material": ">=7.3.0 <7.4.0",
|
"@mui/material": ">=9.2.0 <9.3.0",
|
||||||
"@mui/x-data-grid": ">=8.28.0 <8.29.0",
|
"@mui/x-data-grid": ">=9.10.0 <9.11.0",
|
||||||
"@tanstack/react-query": ">=5.101.0 <5.102.0",
|
"@tanstack/react-query": ">=5.101.0 <5.102.0",
|
||||||
"chart.js": ">=4.5.0 <4.6.0",
|
"chart.js": ">=4.5.0 <4.6.0",
|
||||||
"react": ">=19.2.0 <19.3.0",
|
"react": ">=19.2.0 <19.3.0",
|
||||||
@@ -24,12 +24,12 @@
|
|||||||
"eslint-plugin-react": ">=7.37.0 <7.38.0",
|
"eslint-plugin-react": ">=7.37.0 <7.38.0",
|
||||||
"eslint-plugin-react-hooks": ">=7.1.0 <7.2.0",
|
"eslint-plugin-react-hooks": ">=7.1.0 <7.2.0",
|
||||||
"eslint-plugin-react-refresh": ">=0.5.0 <0.6.0",
|
"eslint-plugin-react-refresh": ">=0.5.0 <0.6.0",
|
||||||
"eslint-plugin-simple-import-sort": ">=12.1.0 <12.2.0",
|
"eslint-plugin-simple-import-sort": ">=14.0.0 <14.1.0",
|
||||||
"typescript": ">=5.9.0 <5.10.0",
|
"typescript": ">=6.0.0 <6.1.0",
|
||||||
"typescript-eslint": ">=8.57.0 <8.58.0",
|
"typescript-eslint": ">=8.64.0 <8.65.0",
|
||||||
"vite": ">=8.1.0 <8.2.0"
|
"vite": ">=8.1.0 <8.2.0"
|
||||||
},
|
},
|
||||||
"name": "ahriman-frontend",
|
"name": "ahriman",
|
||||||
"private": true,
|
"private": true,
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "tsc && vite build",
|
"build": "tsc && vite build",
|
||||||
@@ -39,5 +39,5 @@
|
|||||||
"preview": "vite preview"
|
"preview": "vite preview"
|
||||||
},
|
},
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"version": "2.20.0"
|
"version": "2.21.1"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -58,11 +58,7 @@ export default function PackageInfoDialog({
|
|||||||
const { showSuccess, showError } = useNotification();
|
const { showSuccess, showError } = useNotification();
|
||||||
const queryClient = useQueryClient();
|
const queryClient = useQueryClient();
|
||||||
|
|
||||||
const [localPackageBase, setLocalPackageBase] = useState(packageBase);
|
const localPackageBase = packageBase;
|
||||||
if (packageBase !== null && packageBase !== localPackageBase) {
|
|
||||||
setLocalPackageBase(packageBase);
|
|
||||||
}
|
|
||||||
|
|
||||||
const [activeTab, setActiveTab] = useState<TabKey>("logs");
|
const [activeTab, setActiveTab] = useState<TabKey>("logs");
|
||||||
const [refreshDatabase, setRefreshDatabase] = useState(true);
|
const [refreshDatabase, setRefreshDatabase] = useState(true);
|
||||||
|
|
||||||
@@ -157,38 +153,42 @@ export default function PackageInfoDialog({
|
|||||||
|
|
||||||
<DialogContent>
|
<DialogContent>
|
||||||
{pkg &&
|
{pkg &&
|
||||||
<>
|
<PackageDetailsGrid dependencies={dependencies} pkg={pkg} />
|
||||||
<PackageDetailsGrid dependencies={dependencies} pkg={pkg} />
|
}
|
||||||
<PackagePatchesList
|
{localPackageBase &&
|
||||||
editable={isAuthorized}
|
<PackagePatchesList
|
||||||
onDelete={key => void handleDeletePatch(key)}
|
editable={isAuthorized}
|
||||||
patches={patches}
|
onDelete={key => void handleDeletePatch(key)}
|
||||||
/>
|
patches={patches}
|
||||||
|
/>
|
||||||
|
}
|
||||||
|
|
||||||
|
{localPackageBase && currentRepository &&
|
||||||
|
<>
|
||||||
<Box sx={{ borderBottom: 1, borderColor: "divider", mt: 2 }}>
|
<Box sx={{ borderBottom: 1, borderColor: "divider", mt: 2 }}>
|
||||||
<Tabs onChange={(_, tab: TabKey) => setActiveTab(tab)} value={activeTab}>
|
<Tabs onChange={(_, tab: TabKey) => setActiveTab(tab)} value={activeTab}>
|
||||||
{tabs.map(({ key, label }) => <Tab key={key} label={label} value={key} />)}
|
{tabs.map(({ key, label }) => <Tab key={key} label={label} value={key} />)}
|
||||||
</Tabs>
|
</Tabs>
|
||||||
</Box>
|
</Box>
|
||||||
|
|
||||||
{activeTab === "logs" && localPackageBase && currentRepository &&
|
{activeTab === "logs" &&
|
||||||
<BuildLogsTab
|
<BuildLogsTab
|
||||||
packageBase={localPackageBase}
|
packageBase={localPackageBase}
|
||||||
repository={currentRepository}
|
repository={currentRepository}
|
||||||
/>
|
/>
|
||||||
}
|
}
|
||||||
{activeTab === "changes" && localPackageBase && currentRepository &&
|
{activeTab === "changes" &&
|
||||||
<ChangesTab packageBase={localPackageBase} repository={currentRepository} />
|
<ChangesTab packageBase={localPackageBase} repository={currentRepository} />
|
||||||
}
|
}
|
||||||
{activeTab === "pkgbuild" && localPackageBase && currentRepository &&
|
{activeTab === "pkgbuild" &&
|
||||||
<PkgbuildTab packageBase={localPackageBase} repository={currentRepository} />
|
<PkgbuildTab packageBase={localPackageBase} repository={currentRepository} />
|
||||||
}
|
}
|
||||||
{activeTab === "events" && localPackageBase && currentRepository &&
|
{activeTab === "events" &&
|
||||||
<EventsTab packageBase={localPackageBase} repository={currentRepository} />
|
<EventsTab packageBase={localPackageBase} repository={currentRepository} />
|
||||||
}
|
}
|
||||||
{activeTab === "artifacts" && localPackageBase && currentRepository &&
|
{activeTab === "artifacts" &&
|
||||||
<ArtifactsTab
|
<ArtifactsTab
|
||||||
currentVersion={pkg.version}
|
currentVersion={pkg?.version}
|
||||||
packageBase={localPackageBase}
|
packageBase={localPackageBase}
|
||||||
repository={currentRepository}
|
repository={currentRepository}
|
||||||
/>
|
/>
|
||||||
|
|||||||
@@ -32,7 +32,7 @@ import { useCallback, useMemo } from "react";
|
|||||||
import { DETAIL_TABLE_PROPS } from "utils";
|
import { DETAIL_TABLE_PROPS } from "utils";
|
||||||
|
|
||||||
interface ArtifactsTabProps {
|
interface ArtifactsTabProps {
|
||||||
currentVersion: string;
|
currentVersion?: string;
|
||||||
packageBase: string;
|
packageBase: string;
|
||||||
repository: RepositoryId;
|
repository: RepositoryId;
|
||||||
}
|
}
|
||||||
@@ -78,6 +78,7 @@ export default function ArtifactsTab({
|
|||||||
})).reverse();
|
})).reverse();
|
||||||
},
|
},
|
||||||
queryKey: QueryKeys.artifacts(packageBase, repository),
|
queryKey: QueryKeys.artifacts(packageBase, repository),
|
||||||
|
refetchOnMount: "always",
|
||||||
});
|
});
|
||||||
|
|
||||||
const handleRollback = useCallback(async (version: string): Promise<void> => {
|
const handleRollback = useCallback(async (version: string): Promise<void> => {
|
||||||
@@ -101,7 +102,7 @@ export default function ArtifactsTab({
|
|||||||
<Tooltip title={params.row.version === currentVersion ? "Current version" : "Rollback to this version"}>
|
<Tooltip title={params.row.version === currentVersion ? "Current version" : "Rollback to this version"}>
|
||||||
<span>
|
<span>
|
||||||
<IconButton
|
<IconButton
|
||||||
disabled={params.row.version === currentVersion}
|
disabled={currentVersion === params.row.version}
|
||||||
onClick={() => void handleRollback(params.row.version)}
|
onClick={() => void handleRollback(params.row.version)}
|
||||||
size="small"
|
size="small"
|
||||||
>
|
>
|
||||||
|
|||||||
@@ -61,6 +61,7 @@ export default function BuildLogsTab({
|
|||||||
enabled: !!packageBase,
|
enabled: !!packageBase,
|
||||||
queryFn: () => client.fetch.fetchPackageLogs(packageBase, repository),
|
queryFn: () => client.fetch.fetchPackageLogs(packageBase, repository),
|
||||||
queryKey: QueryKeys.logs(packageBase, repository),
|
queryKey: QueryKeys.logs(packageBase, repository),
|
||||||
|
refetchOnMount: "always",
|
||||||
});
|
});
|
||||||
|
|
||||||
// Build version selectors from all logs
|
// Build version selectors from all logs
|
||||||
@@ -116,6 +117,7 @@ export default function BuildLogsTab({
|
|||||||
)
|
)
|
||||||
: skipToken,
|
: skipToken,
|
||||||
queryKey: QueryKeys.logsVersion(packageBase, repository, activeVersion?.version ?? "", activeVersion?.processId ?? ""),
|
queryKey: QueryKeys.logsVersion(packageBase, repository, activeVersion?.version ?? "", activeVersion?.processId ?? ""),
|
||||||
|
refetchOnMount: "always",
|
||||||
});
|
});
|
||||||
|
|
||||||
// Derive displayed logs: prefer fresh polled data when available
|
// Derive displayed logs: prefer fresh polled data when available
|
||||||
|
|||||||
@@ -54,6 +54,7 @@ export default function EventsTab({ packageBase, repository }: EventsTabProps):
|
|||||||
enabled: !!packageBase,
|
enabled: !!packageBase,
|
||||||
queryFn: () => client.fetch.fetchPackageEvents(repository, packageBase, 30),
|
queryFn: () => client.fetch.fetchPackageEvents(repository, packageBase, 30),
|
||||||
queryKey: QueryKeys.events(repository, packageBase),
|
queryKey: QueryKeys.events(repository, packageBase),
|
||||||
|
refetchOnMount: "always",
|
||||||
});
|
});
|
||||||
|
|
||||||
const rows = useMemo<EventRow[]>(() => events.map((event, index) => ({
|
const rows = useMemo<EventRow[]>(() => events.map((event, index) => ({
|
||||||
|
|||||||
@@ -89,7 +89,7 @@ export default function PackageDetailsGrid({ dependencies, pkg }: PackageDetails
|
|||||||
<Grid size={{ md: 1, xs: 4 }}><Typography align="right" color="text.secondary" variant="body2">upstream</Typography></Grid>
|
<Grid size={{ md: 1, xs: 4 }}><Typography align="right" color="text.secondary" variant="body2">upstream</Typography></Grid>
|
||||||
<Grid size={{ md: 5, xs: 8 }}>
|
<Grid size={{ md: 5, xs: 8 }}>
|
||||||
{upstreamUrls.map(url =>
|
{upstreamUrls.map(url =>
|
||||||
<Link display="block" href={url} key={url} rel="noopener noreferrer" target="_blank" underline="hover" variant="body2">
|
<Link href={url} key={url} rel="noopener noreferrer" sx={{ display: "block" }} target="_blank" underline="hover" variant="body2">
|
||||||
{url}
|
{url}
|
||||||
</Link>,
|
</Link>,
|
||||||
)}
|
)}
|
||||||
|
|||||||
@@ -30,6 +30,7 @@ export function usePackageChanges(packageBase: string, repository: RepositoryId)
|
|||||||
enabled: !!packageBase,
|
enabled: !!packageBase,
|
||||||
queryFn: () => client.fetch.fetchPackageChanges(packageBase, repository),
|
queryFn: () => client.fetch.fetchPackageChanges(packageBase, repository),
|
||||||
queryKey: QueryKeys.changes(packageBase, repository),
|
queryKey: QueryKeys.changes(packageBase, repository),
|
||||||
|
refetchOnMount: "always",
|
||||||
});
|
});
|
||||||
|
|
||||||
return data;
|
return data;
|
||||||
|
|||||||
+11
-1
@@ -1,7 +1,6 @@
|
|||||||
{
|
{
|
||||||
"compilerOptions": {
|
"compilerOptions": {
|
||||||
"allowImportingTsExtensions": true,
|
"allowImportingTsExtensions": true,
|
||||||
"baseUrl": "src",
|
|
||||||
"isolatedModules": true,
|
"isolatedModules": true,
|
||||||
"jsx": "react-jsx",
|
"jsx": "react-jsx",
|
||||||
"lib": ["ESNext", "DOM", "DOM.Iterable"],
|
"lib": ["ESNext", "DOM", "DOM.Iterable"],
|
||||||
@@ -12,6 +11,17 @@
|
|||||||
"noImplicitOverride": true,
|
"noImplicitOverride": true,
|
||||||
"noUnusedLocals": true,
|
"noUnusedLocals": true,
|
||||||
"noUnusedParameters": true,
|
"noUnusedParameters": true,
|
||||||
|
"paths": {
|
||||||
|
"App": ["./src/App.tsx"],
|
||||||
|
"api/*": ["./src/api/*"],
|
||||||
|
"chartSetup": ["./src/chartSetup.ts"],
|
||||||
|
"components/*": ["./src/components/*"],
|
||||||
|
"contexts/*": ["./src/contexts/*"],
|
||||||
|
"hooks/*": ["./src/hooks/*"],
|
||||||
|
"models/*": ["./src/models/*"],
|
||||||
|
"theme/*": ["./src/theme/*"],
|
||||||
|
"utils": ["./src/utils.ts"]
|
||||||
|
},
|
||||||
"resolveJsonModule": true,
|
"resolveJsonModule": true,
|
||||||
"skipLibCheck": true,
|
"skipLibCheck": true,
|
||||||
"strict": true,
|
"strict": true,
|
||||||
|
|||||||
+12
-10
@@ -6,10 +6,6 @@ build-backend = "hatchling.build"
|
|||||||
|
|
||||||
[project]
|
[project]
|
||||||
name = "ahriman"
|
name = "ahriman"
|
||||||
description = "ArcH linux ReposItory MANager"
|
|
||||||
readme = "README.md"
|
|
||||||
requires-python = ">=3.13"
|
|
||||||
license = { file = "COPYING" }
|
|
||||||
authors = [
|
authors = [
|
||||||
{ name = "ahriman team" },
|
{ name = "ahriman team" },
|
||||||
]
|
]
|
||||||
@@ -18,14 +14,18 @@ dependencies = [
|
|||||||
"ahriman-triggers",
|
"ahriman-triggers",
|
||||||
"ahriman-web",
|
"ahriman-web",
|
||||||
]
|
]
|
||||||
|
description = "ArcH linux ReposItory MANager"
|
||||||
dynamic = [
|
dynamic = [
|
||||||
"version",
|
"version",
|
||||||
]
|
]
|
||||||
|
license = { file = "COPYING" }
|
||||||
|
readme = "README.md"
|
||||||
|
requires-python = ">=3.14"
|
||||||
|
|
||||||
[project.urls]
|
[project.urls]
|
||||||
|
Changelog = "https://github.com/arcan1s/ahriman/releases"
|
||||||
Documentation = "https://ahriman.readthedocs.io/"
|
Documentation = "https://ahriman.readthedocs.io/"
|
||||||
Repository = "https://github.com/arcan1s/ahriman"
|
Repository = "https://github.com/arcan1s/ahriman"
|
||||||
Changelog = "https://github.com/arcan1s/ahriman/releases"
|
|
||||||
|
|
||||||
[dependency-groups]
|
[dependency-groups]
|
||||||
check = [
|
check = [
|
||||||
@@ -44,9 +44,9 @@ docs = [
|
|||||||
"sphinx-rtd-theme>=1.1.1", # https://stackoverflow.com/a/74355734
|
"sphinx-rtd-theme>=1.1.1", # https://stackoverflow.com/a/74355734
|
||||||
]
|
]
|
||||||
tests = [
|
tests = [
|
||||||
|
"coverage",
|
||||||
"pytest",
|
"pytest",
|
||||||
"pytest-aiohttp",
|
"pytest-aiohttp",
|
||||||
"pytest-cov",
|
|
||||||
"pytest-helpers-namespace",
|
"pytest-helpers-namespace",
|
||||||
"pytest-mock",
|
"pytest-mock",
|
||||||
"pytest-resource-path",
|
"pytest-resource-path",
|
||||||
@@ -62,9 +62,10 @@ exclude = [
|
|||||||
"/recipes",
|
"/recipes",
|
||||||
"/tools",
|
"/tools",
|
||||||
"tests",
|
"tests",
|
||||||
"/.bandit.yml",
|
"/.bandit.toml",
|
||||||
"/.dockerignore",
|
"/.dockerignore",
|
||||||
"/.pylint.toml",
|
"/.pylint.toml",
|
||||||
|
"/.pytest.toml",
|
||||||
"/.readthedocs.yml",
|
"/.readthedocs.yml",
|
||||||
"/conftest.py",
|
"/conftest.py",
|
||||||
"/github-logo.png",
|
"/github-logo.png",
|
||||||
@@ -87,9 +88,10 @@ workspace.members = [
|
|||||||
path = "ahriman-core/src/ahriman/__init__.py"
|
path = "ahriman-core/src/ahriman/__init__.py"
|
||||||
|
|
||||||
[tool.uv.sources]
|
[tool.uv.sources]
|
||||||
ahriman-core = { workspace = true }
|
ahriman-core = { workspace = true, editable = false }
|
||||||
ahriman-triggers = { workspace = true }
|
ahriman-pytest-plugins = { path = "tools/pytest_plugins", editable = true }
|
||||||
ahriman-web = { workspace = true }
|
ahriman-triggers = { workspace = true, editable = false }
|
||||||
|
ahriman-web = { workspace = true, editable = false }
|
||||||
|
|
||||||
[tool.uv.workspace]
|
[tool.uv.workspace]
|
||||||
members = [
|
members = [
|
||||||
|
|||||||
@@ -1,3 +1,22 @@
|
|||||||
|
#
|
||||||
|
# Copyright (c) 2021-2025 ahriman team.
|
||||||
|
#
|
||||||
|
# This file is part of ahriman
|
||||||
|
# (see https://github.com/arcan1s/ahriman).
|
||||||
|
#
|
||||||
|
# This program is free software: you can redistribute it and/or modify
|
||||||
|
# it under the terms of the GNU General Public License as published by
|
||||||
|
# the Free Software Foundation, either version 3 of the License, or
|
||||||
|
# (at your option) any later version.
|
||||||
|
#
|
||||||
|
# This program is distributed in the hope that it will be useful,
|
||||||
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
# GNU General Public License for more details.
|
||||||
|
#
|
||||||
|
# You should have received a copy of the GNU General Public License
|
||||||
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
#
|
||||||
import argparse
|
import argparse
|
||||||
import datetime
|
import datetime
|
||||||
import pytest
|
import pytest
|
||||||
@@ -41,7 +60,6 @@ T = TypeVar("T")
|
|||||||
|
|
||||||
# helpers
|
# helpers
|
||||||
# https://stackoverflow.com/a/21611963
|
# https://stackoverflow.com/a/21611963
|
||||||
@pytest.helpers.register
|
|
||||||
def anyvar(cls: type[T], strict: bool = False) -> T:
|
def anyvar(cls: type[T], strict: bool = False) -> T:
|
||||||
"""
|
"""
|
||||||
any value helper for mocker calls check
|
any value helper for mocker calls check
|
||||||
@@ -73,7 +91,6 @@ def anyvar(cls: type[T], strict: bool = False) -> T:
|
|||||||
return AnyVar()
|
return AnyVar()
|
||||||
|
|
||||||
|
|
||||||
@pytest.helpers.register
|
|
||||||
def get_package_status(package: Package) -> dict[str, Any]:
|
def get_package_status(package: Package) -> dict[str, Any]:
|
||||||
"""
|
"""
|
||||||
helper to extract package status from package
|
helper to extract package status from package
|
||||||
@@ -87,7 +104,6 @@ def get_package_status(package: Package) -> dict[str, Any]:
|
|||||||
return {"status": BuildStatusEnum.Unknown.value, "package": package.view()}
|
return {"status": BuildStatusEnum.Unknown.value, "package": package.view()}
|
||||||
|
|
||||||
|
|
||||||
@pytest.helpers.register
|
|
||||||
def get_package_status_extended(package: Package) -> dict[str, Any]:
|
def get_package_status_extended(package: Package) -> dict[str, Any]:
|
||||||
"""
|
"""
|
||||||
helper to extract package status from package
|
helper to extract package status from package
|
||||||
@@ -101,7 +117,6 @@ def get_package_status_extended(package: Package) -> dict[str, Any]:
|
|||||||
return {"status": BuildStatus().view(), "package": package.view()}
|
return {"status": BuildStatus().view(), "package": package.view()}
|
||||||
|
|
||||||
|
|
||||||
@pytest.helpers.register
|
|
||||||
def import_error(package: str, components: list[str], mocker: MockerFixture) -> MagicMock:
|
def import_error(package: str, components: list[str], mocker: MockerFixture) -> MagicMock:
|
||||||
"""
|
"""
|
||||||
mock import error
|
mock import error
|
||||||
@@ -117,6 +132,7 @@ def import_error(package: str, components: list[str], mocker: MockerFixture) ->
|
|||||||
import builtins
|
import builtins
|
||||||
_import = builtins.__import__
|
_import = builtins.__import__
|
||||||
|
|
||||||
|
# pylint: disable=redefined-builtin
|
||||||
def test_import(name: str, globals: Any, locals: Any, from_list: list[str], level: Any):
|
def test_import(name: str, globals: Any, locals: Any, from_list: list[str], level: Any):
|
||||||
if name == package and (not components or any(component in from_list for component in components)):
|
if name == package and (not components or any(component in from_list for component in components)):
|
||||||
raise ImportError
|
raise ImportError
|
||||||
@@ -125,9 +141,18 @@ def import_error(package: str, components: list[str], mocker: MockerFixture) ->
|
|||||||
return mocker.patch.object(builtins, "__import__", test_import)
|
return mocker.patch.object(builtins, "__import__", test_import)
|
||||||
|
|
||||||
|
|
||||||
|
@pytest.hookimpl(trylast=True)
|
||||||
|
def pytest_configure() -> None:
|
||||||
|
"""
|
||||||
|
register helpers after pytest-helpers-namespace has initialized
|
||||||
|
"""
|
||||||
|
for helper in (anyvar, get_package_status, get_package_status_extended, import_error):
|
||||||
|
pytest.helpers.register(helper)
|
||||||
|
|
||||||
|
|
||||||
# generic fixtures
|
# generic fixtures
|
||||||
@pytest.fixture(autouse=True)
|
@pytest.fixture(autouse=True)
|
||||||
def register_log_context() -> None:
|
def _register_log_context() -> None:
|
||||||
"""
|
"""
|
||||||
register log context variables and factory
|
register log context variables and factory
|
||||||
"""
|
"""
|
||||||
@@ -146,31 +171,6 @@ def args() -> argparse.Namespace:
|
|||||||
repository=None, repository_id=None, wait_timeout=-1)
|
repository=None, repository_id=None, wait_timeout=-1)
|
||||||
|
|
||||||
|
|
||||||
@pytest.fixture
|
|
||||||
def gpg(configuration: Configuration) -> GPG:
|
|
||||||
"""
|
|
||||||
fixture for empty GPG
|
|
||||||
|
|
||||||
Args:
|
|
||||||
configuration(Configuration): configuration fixture
|
|
||||||
|
|
||||||
Returns:
|
|
||||||
GPG: GPG test instance
|
|
||||||
"""
|
|
||||||
return GPG(configuration)
|
|
||||||
|
|
||||||
|
|
||||||
@pytest.fixture
|
|
||||||
def parser() -> argparse.ArgumentParser:
|
|
||||||
"""
|
|
||||||
fixture for command line arguments parser
|
|
||||||
|
|
||||||
Returns:
|
|
||||||
argparse.ArgumentParser: command line arguments parser instance
|
|
||||||
"""
|
|
||||||
return _parser()
|
|
||||||
|
|
||||||
|
|
||||||
@pytest.fixture
|
@pytest.fixture
|
||||||
def aur_package_ahriman() -> AURPackage:
|
def aur_package_ahriman() -> AURPackage:
|
||||||
"""
|
"""
|
||||||
@@ -255,43 +255,6 @@ def configuration(repository_id: RepositoryId, tmp_path: Path, resource_path_roo
|
|||||||
path = resource_path_root / "core" / "ahriman.ini"
|
path = resource_path_root / "core" / "ahriman.ini"
|
||||||
|
|
||||||
instance = Configuration.from_path(path, repository_id)
|
instance = Configuration.from_path(path, repository_id)
|
||||||
settings_root = resource_path_root.parent.parent / "ahriman-core" / "package" / "share" / "ahriman" / "settings"
|
|
||||||
logging_path = settings_root / "ahriman.ini.d" / "logging.ini"
|
|
||||||
instance.set_option("settings", "include", str(settings_root / "ahriman.ini.d"))
|
|
||||||
instance.set_option("settings", "logging", str(logging_path))
|
|
||||||
|
|
||||||
for include_root in (
|
|
||||||
settings_root /
|
|
||||||
"ahriman.ini.d",
|
|
||||||
resource_path_root.parent.parent /
|
|
||||||
"ahriman-triggers" /
|
|
||||||
"package" /
|
|
||||||
"share" /
|
|
||||||
"ahriman" /
|
|
||||||
"settings" /
|
|
||||||
"ahriman.ini.d",
|
|
||||||
resource_path_root.parent.parent /
|
|
||||||
"ahriman-web" /
|
|
||||||
"package" /
|
|
||||||
"share" /
|
|
||||||
"ahriman" /
|
|
||||||
"settings" /
|
|
||||||
"ahriman.ini.d",
|
|
||||||
):
|
|
||||||
for include in sorted(include_root.glob("*.ini")):
|
|
||||||
if include != logging_path:
|
|
||||||
instance.read(include)
|
|
||||||
|
|
||||||
core_templates = resource_path_root.parent.parent / "ahriman-core" / "package" / "share" / "ahriman" / "templates"
|
|
||||||
web_templates = resource_path_root.parent.parent / "ahriman-web" / "package" / "share" / "ahriman" / "templates"
|
|
||||||
|
|
||||||
for section in ("email", "html", "rss", "telegram"):
|
|
||||||
instance.set_option(section, "templates", str(core_templates))
|
|
||||||
instance.set_option("keyring", "target", "keyring")
|
|
||||||
instance.set_option("mirrorlist", "target", "mirrorlist")
|
|
||||||
instance.set_option("web", "templates", str(web_templates))
|
|
||||||
instance.set_option("web", "static_path", str(web_templates / "static"))
|
|
||||||
instance.set_option("web", "autorefresh_intervals", "")
|
|
||||||
instance.set_option("repository", "root", str(tmp_path))
|
instance.set_option("repository", "root", str(tmp_path))
|
||||||
instance.set_option("settings", "database", str(tmp_path / "ahriman.db"))
|
instance.set_option("settings", "database", str(tmp_path / "ahriman.db"))
|
||||||
|
|
||||||
@@ -319,6 +282,20 @@ def database(configuration: Configuration, mocker: MockerFixture) -> SQLite:
|
|||||||
return SQLite.load(configuration)
|
return SQLite.load(configuration)
|
||||||
|
|
||||||
|
|
||||||
|
@pytest.fixture
|
||||||
|
def gpg(configuration: Configuration) -> GPG:
|
||||||
|
"""
|
||||||
|
fixture for empty GPG
|
||||||
|
|
||||||
|
Args:
|
||||||
|
configuration(Configuration): configuration fixture
|
||||||
|
|
||||||
|
Returns:
|
||||||
|
GPG: GPG test instance
|
||||||
|
"""
|
||||||
|
return GPG(configuration)
|
||||||
|
|
||||||
|
|
||||||
@pytest.fixture
|
@pytest.fixture
|
||||||
def local_client(database: SQLite, configuration: Configuration) -> Client:
|
def local_client(database: SQLite, configuration: Configuration) -> Client:
|
||||||
"""
|
"""
|
||||||
@@ -488,6 +465,17 @@ def package_description_python2_schedule() -> PackageDescription:
|
|||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
@pytest.fixture
|
||||||
|
def parser() -> argparse.ArgumentParser:
|
||||||
|
"""
|
||||||
|
fixture for command line arguments parser
|
||||||
|
|
||||||
|
Returns:
|
||||||
|
argparse.ArgumentParser: command line arguments parser instance
|
||||||
|
"""
|
||||||
|
return _parser()
|
||||||
|
|
||||||
|
|
||||||
@pytest.fixture
|
@pytest.fixture
|
||||||
def remote_source() -> RemoteSource:
|
def remote_source() -> RemoteSource:
|
||||||
"""
|
"""
|
||||||
@@ -0,0 +1,18 @@
|
|||||||
|
[build-system]
|
||||||
|
requires = [
|
||||||
|
"hatchling",
|
||||||
|
]
|
||||||
|
build-backend = "hatchling.build"
|
||||||
|
|
||||||
|
[project]
|
||||||
|
name = "ahriman-pytest-plugins"
|
||||||
|
classifiers = [
|
||||||
|
"Framework :: Pytest",
|
||||||
|
]
|
||||||
|
version = "1"
|
||||||
|
|
||||||
|
[project.entry-points.pytest11]
|
||||||
|
ahriman-fixtures = "ahriman_fixtures"
|
||||||
|
|
||||||
|
[tool.hatch.build.targets.wheel]
|
||||||
|
packages = ["ahriman_fixtures"]
|
||||||
@@ -3,6 +3,9 @@ env_list = [
|
|||||||
"tests",
|
"tests",
|
||||||
]
|
]
|
||||||
isolated_build = true
|
isolated_build = true
|
||||||
|
requires = [
|
||||||
|
"tox-uv",
|
||||||
|
]
|
||||||
labels.release = [
|
labels.release = [
|
||||||
"version",
|
"version",
|
||||||
"docs",
|
"docs",
|
||||||
@@ -28,7 +31,7 @@ autopep8 = [
|
|||||||
]
|
]
|
||||||
bandit = [
|
bandit = [
|
||||||
"--configfile",
|
"--configfile",
|
||||||
".bandit.yml",
|
".bandit.toml",
|
||||||
]
|
]
|
||||||
manpage = [
|
manpage = [
|
||||||
"--author",
|
"--author",
|
||||||
@@ -82,8 +85,11 @@ name = "ahriman"
|
|||||||
|
|
||||||
[env.archive]
|
[env.archive]
|
||||||
description = "Create source files tarball"
|
description = "Create source files tarball"
|
||||||
|
deps = [
|
||||||
|
"build",
|
||||||
|
"hatchling",
|
||||||
|
]
|
||||||
skip_install = true
|
skip_install = true
|
||||||
system_site_packages = true
|
|
||||||
commands = [
|
commands = [
|
||||||
[
|
[
|
||||||
"{envpython}",
|
"{envpython}",
|
||||||
@@ -294,6 +300,7 @@ depends = [
|
|||||||
pass_env = [
|
pass_env = [
|
||||||
"SSH_AUTH_SOCK",
|
"SSH_AUTH_SOCK",
|
||||||
]
|
]
|
||||||
|
skip_install = true
|
||||||
commands = [
|
commands = [
|
||||||
[
|
[
|
||||||
"git",
|
"git",
|
||||||
@@ -335,17 +342,33 @@ dependency_groups = [
|
|||||||
]
|
]
|
||||||
deps = [
|
deps = [
|
||||||
{ replace = "ref", of = ["project", "extras"], extend = true },
|
{ replace = "ref", of = ["project", "extras"], extend = true },
|
||||||
|
"./tools/pytest_plugins",
|
||||||
]
|
]
|
||||||
|
package = "uv"
|
||||||
pip_pre = true
|
pip_pre = true
|
||||||
|
runner = "uv-venv-runner"
|
||||||
set_env.CFLAGS = "-Wno-unterminated-string-initialization"
|
set_env.CFLAGS = "-Wno-unterminated-string-initialization"
|
||||||
commands = [
|
commands = [
|
||||||
[
|
[
|
||||||
|
"coverage",
|
||||||
|
"run",
|
||||||
|
"--source",
|
||||||
|
"ahriman",
|
||||||
|
"-m",
|
||||||
"pytest",
|
"pytest",
|
||||||
"tests/test_tests.py",
|
{ replace = "posargs", default = [
|
||||||
"ahriman-core/tests",
|
"tests/test_tests.py",
|
||||||
"ahriman-triggers/tests",
|
"ahriman-core/tests",
|
||||||
"ahriman-web/tests",
|
"ahriman-triggers/tests",
|
||||||
{ replace = "posargs", extend = true },
|
"ahriman-web/tests",
|
||||||
|
], extend = true },
|
||||||
|
],
|
||||||
|
[
|
||||||
|
"coverage",
|
||||||
|
"report",
|
||||||
|
"--show-missing",
|
||||||
|
"--skip-covered",
|
||||||
|
"--fail-under=100",
|
||||||
],
|
],
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user