autodistbranch(1)
| AUTODISTBRANCH(1) | Repository Commands Manual | AUTODISTBRANCH(1) |
NAME
autodistbranch - script to automatically calculate the %_priority_distbranch value
SYNOPSIS
autodistbranch [ options ]
DESCRIPTION
The autodistbranch script reads /var/lib/apt/lists/*_release files and returns the name of the latest available suite. The "latest" release is determined by either comparing the suite names (labels) or by comparing the date tags. The default is to compare suite names with rpmvercmp(1) command.
An RPM-script with alternative %_priority_distbranch macro definition is normally installed in /etc/rpm/macros.d/90-autodistbranch. The macro invokes the autodistbranch script and thus evaluates to the automatically calculated value. In particular, rpm --eval='%_priority_distbranch' returns that value too.
OPTIONS
- -L, --label
- Use release 'Label:' instead of 'Suite:' name.
- -d, --date
- Order releases by the 'Date:' tag instead of by version compare rules.
- -a, --all
- Don't filter out task repositories.
- -V, --version
- Print program version and exit.
- -h, --help
- Show help text and exit.
BUGS
Report bugs to https://bugzilla.altlinux.org/.
COPYRIGHT
Copyright © BaseALT, Ltd. License GPLv2+: GNU GPL version 2
or later See <http://gnu.org/licenses/gpl.html> for more information.
This is free software: you are free to change and redistribute it. There is NO
WARRANTY, to the extent permitted by law.
| 2025 | autodistbranch 0.1.2 |
