[Git][pacman/pacman][master] 8 commits: add extended data field for arbitrary package data
Allan McRae pushed to branch master at Pacman / Pacman Commits: 3405709b by Andrew Gregory at 2022-07-21T19:01:27+10:00 add extended data field for arbitrary package data This adds a mechanism for package builders to add arbitrary data to packages that is not necessarily relevant enough to the package installation process to gain first-class support in alpm. Currently these fields have to be added to parsers with a "not actually used" comment and can't be retrieved through the API. Extended data is stored in "name=value" format in the xdata field (%XDATA% in desc files): xdata = pkgtype=debug or %XDATA% pkgtype=debug Signed-off-by: Andrew Gregory <andrew.gregory.8@gmail.com> - - - - - fe028c7f by Andrew Gregory at 2022-07-21T19:01:38+10:00 query: print extended data when extra info is requested Signed-off-by: Andrew Gregory <andrew.gregory.8@gmail.com> - - - - - 6dcd4b53 by Andrew Gregory at 2022-07-21T19:01:45+10:00 makepkg: store pkgtype in xdata Package type is not relevant to alpm or even exposed to front-ends in any way. Signed-off-by: Andrew Gregory <andrew.gregory.8@gmail.com> - - - - - 819a0c29 by Jelle van der Waa at 2022-07-21T19:09:59+10:00 util.c: extend --print-format with expac options Extend --print-format with all expac format strings which can be easily added without conversions and through a simple C macro. Signed-off-by: Jelle van der Waa <jelle@archlinux.org> Signed-off-by: Allan McRae <allan@archlinux.org> - - - - - 7bcc2d9b by Allan McRae at 2022-07-21T19:50:10+10:00 Correctly handle failure in getting build or install dates alpm_pkg_get_builddate() and alpm_pkg_get_installdate() both return -1 on error. Correctly handle the error condition in pacman. Signed-off-by: Allan McRae <allan@archlinux.org> - - - - - 00bc386d by Jelle van der Waa at 2022-07-21T19:56:18+10:00 util.c: extend --print-format with %b for builddate Signed-off-by: Jelle van der Waa <jelle@archlinux.org> Signed-off-by: Allan McRae <allan@archlinux.org> - - - - - cb9776a0 by Jelle van der Waa at 2022-07-21T19:58:20+10:00 util.c: extend --print-format with %C, %D, %M Extend print-format with checkdepends, depends and makedepends. Signed-off-by: Jelle van der Waa <jelle@archlinux.org> Signed-off-by: Allan McRae <allan@archlinux.org> - - - - - 015eb31c by Chris Down at 2022-07-21T20:00:44+10:00 dload: Remove unused ABORT_SIGINT The last user of ABORT_SIGINT was removed in commit 84723cab5dfc ("Cleanup the old sequential download code"), and this isn't exported as part of the public API. Signed-off-by: Chris Down <chris@chrisdown.name> Signed-off-by: Allan McRae <allan@archlinux.org> - - - - - 11 changed files: - doc/pacman.8.asciidoc - lib/libalpm/alpm.h - lib/libalpm/be_local.c - lib/libalpm/be_package.c - lib/libalpm/be_sync.c - lib/libalpm/dload.c - lib/libalpm/package.c - lib/libalpm/package.h - scripts/makepkg.sh.in - src/pacman/package.c - src/pacman/util.c View it on GitLab: https://gitlab.archlinux.org/pacman/pacman/-/compare/2bf67416c17c99851e2d0bb... -- View it on GitLab: https://gitlab.archlinux.org/pacman/pacman/-/compare/2bf67416c17c99851e2d0bb... You're receiving this email because of your account on gitlab.archlinux.org.
participants (1)
-
Allan McRae (@allan)