Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

lib: add ability to template repo urls with {arch} #574

Open
wants to merge 34 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
34 commits
Select commit Hold shift + click to select a range
36df78d
lib/compat/humanize_number.c: switch to freebsd version
Duncaen Feb 21, 2023
ca40961
lib: add xbps_fmt* functions for string formatting
Duncaen Feb 20, 2023
b3ba0f2
bin/xbps-query: add -F/--format flag
Duncaen Feb 20, 2023
0813ea7
tests: add tests for xbps_fmt* functions
Duncaen Feb 21, 2023
5972c11
lib/format.c: new humanize format !humanize[ ][.][width][minscale[max…
Duncaen Feb 21, 2023
03b4ab1
bin/xbps-query: document format flag
Duncaen Feb 21, 2023
870b70c
lib/format.c: split/cleanup code
Duncaen Mar 10, 2023
0982b22
lib/format.c: change escaped [{}] to \\[{}]
Duncaen Mar 10, 2023
c5388cd
lib/format.c: add some more escape sequences
Duncaen Mar 10, 2023
574938d
bin/xbps-query: update/clean format documentation
Duncaen Mar 10, 2023
c95656e
bin/xbps-query: fix humanize "i" SI prefixs documentation
Duncaen Mar 10, 2023
16afd80
lib/format.c: refactor a bit
Duncaen Mar 14, 2023
eccfbeb
lib/format.c: add optional default to format string variables
Duncaen Mar 14, 2023
cd41df8
lib/format.c: simplify escape characters
Duncaen Mar 14, 2023
d324263
lib/format.c: fix parsing empty default string
Duncaen Mar 14, 2023
8b0663b
lib/format.c: fix xbps_fmts*
Duncaen Mar 14, 2023
902ad16
lib/format.c: handle errors from nexttok
Duncaen Jun 19, 2023
5dfadfa
lib/json.c: add json printing stuff
Duncaen Sep 18, 2023
8efe558
lib/format.c: add json value conversion
Duncaen Sep 18, 2023
9a95a39
bin/xbps-query: add --json flag as alternative to --format
Duncaen Sep 18, 2023
fb28e5c
lib/format: add \e escape, fix typos in format spec, remove dbg print
classabbyamp Mar 15, 2023
5640d57
bin/xbps-query: make --json compact if there is no indention
Duncaen Sep 18, 2023
c0422e2
bin/xbps-query: cleanup mode handling
Duncaen Sep 19, 2023
6a5dae8
bin/xbps-query: move --list-repo to main.c, list.c is exclusively pac…
Duncaen Sep 19, 2023
66c6216
bin/xbps-query: add format string support to --list-repos
Duncaen Sep 19, 2023
22cd693
bin/xbps-query: document the --json flag better
Duncaen Sep 19, 2023
95e8568
lib/format.c: IWYU
Duncaen Sep 19, 2023
b5e66ba
include: split xbps_fmt stuff into its own header
Duncaen Sep 19, 2023
68940b5
lib/format.c: make struct xbps_fmt private
Duncaen Sep 19, 2023
4ec4a3c
bin/xbps-query: add pkgname,version and revision format variables
Duncaen Sep 19, 2023
c02eb41
lib/json.c: names and documentation
Duncaen Sep 19, 2023
fa46567
bin/xbps-query: bring back default/null values for package formats
Duncaen Sep 19, 2023
6a88c7b
lib: add ability to template repo urls with {arch}
classabbyamp Oct 9, 2023
441c728
data/repod-main.conf: template arch
classabbyamp Dec 5, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 2 additions & 8 deletions bin/xbps-query/defs.h
Original file line number Diff line number Diff line change
Expand Up @@ -52,16 +52,10 @@ int repo_show_pkg_namedesc(struct xbps_handle *, xbps_object_t, void *,
int ownedby(struct xbps_handle *, const char *, bool, bool);

/* From list.c */
unsigned int find_longest_pkgver(struct xbps_handle *, xbps_object_t);

int list_pkgs_in_dict(struct xbps_handle *, xbps_object_t, const char *, void *, bool *);
int list_manual_pkgs(struct xbps_handle *, xbps_object_t, const char *, void *, bool *);
int list_hold_pkgs(struct xbps_handle *, xbps_object_t, const char *, void *, bool *);
int list_repolock_pkgs(struct xbps_handle *, xbps_object_t, const char *, void *, bool *);
int list_orphans(struct xbps_handle *);
int list_orphans(struct xbps_handle *, const char *);
int list_pkgs_pkgdb(struct xbps_handle *);

int repo_list(struct xbps_handle *);
int list_pkgdb(struct xbps_handle *, int (*filter)(xbps_object_t), const char *format, int json);

/* from search.c */
int search(struct xbps_handle *, bool, const char *, const char *, bool);
Expand Down
Loading
Loading