Skip to content

Commit

Permalink
bin/xbps-query: add --staged flag
Browse files Browse the repository at this point in the history
  • Loading branch information
Duncaen committed Oct 31, 2023
1 parent ff468c6 commit 63d5073
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
5 changes: 5 additions & 0 deletions bin/xbps-query/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ usage(bool fail)
" --repository=<url> Enable repository mode and add repository\n"
" to the top of the list. This option can be\n"
" specified multiple times\n"
" --staged Enable staged packages\n"
" --regex Use Extended Regular Expressions to match\n"
" --fulldeptree Full dependency tree for -x/--deps\n"
" -r, --rootdir <dir> Full path to rootdir\n"
Expand Down Expand Up @@ -105,6 +106,7 @@ main(int argc, char **argv)
{ "regex", no_argument, NULL, 0 },
{ "fulldeptree", no_argument, NULL, 1 },
{ "cat", required_argument, NULL, 2 },
{ "staged", required_argument, NULL, 4 },
{ NULL, 0, NULL, 0 },
};
struct xbps_handle xh;
Expand Down Expand Up @@ -213,6 +215,9 @@ main(int argc, char **argv)
case 3:
list_repolock = opmode = true;
break;
case 4:
flags |= XBPS_FLAG_USE_STAGE;
break;
case '?':
default:
usage(true);
Expand Down
2 changes: 2 additions & 0 deletions bin/xbps-query/xbps-query.1
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,8 @@ and
modes.
.It Fl -fulldeptree
Prints a full dependency tree in the
.It Fl -staged
Enables the use of staged packages from remote repositories.
.Sy show dependencies
mode.
.It Fl r, Fl -rootdir Ar dir
Expand Down

0 comments on commit 63d5073

Please sign in to comment.