PBWrapper¶
Author: | Chris Warrick <chris@chriswarrick.com> |
---|---|
Copyright: | © 2011-2023, Chris Warrick. |
License: | BSD (see /LICENSE or Appendix B.) |
Date: | 2023-01-30 |
Version: | 4.3.2 |
PBWrapper Version: | |
0.2.3 |
New in version 2.1.4.0.
A wrapper for pacman and PKGBUILDer, also known as PBWrapper or pb.
Copyright: | © 2011-2023, Chris Warrick. |
---|---|
License: | BSD (see /LICENSE). |
This is the wrapper for pacman and PKGBUILDer, bin/pb
. It is a complete
mess, but at least it works. All the arguments it gets are passed to pacman,
unless the operation is -S. Then, an additional check is made.
For -S
and -Si
requests, the packages are checked, one by one, if they
are in the AUR. If one is, pkgbuilder -Si
is requested. If not, all error
handling is left to pacman.
For -Ss
and -Syu
requests, they are passed to both managers, complete
with additional arguments applicable to one or another.
Note
Actually, pkgbuilder isn’t called as a subprocess, the arguments are just passed to the main() function, so no time is wasted on reloading everything.