Skip to content

Commit 5c7ee3d

Browse files
committed
bin/xbps-query: add --staging flag
1 parent 8f26ad7 commit 5c7ee3d

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

bin/xbps-query/main.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ usage(bool fail)
5151
" --repository <url> Enable repository mode and add repository\n"
5252
" to the top of the list. This option can be\n"
5353
" specified multiple times\n"
54+
" --staging Enable use of staged packages\n"
5455
" --regex Use Extended Regular Expressions to match\n"
5556
" --fulldeptree Full dependency tree for -x/--deps\n"
5657
" -r, --rootdir <dir> Full path to rootdir\n"
@@ -105,6 +106,7 @@ main(int argc, char **argv)
105106
{ "regex", no_argument, NULL, 0 },
106107
{ "fulldeptree", no_argument, NULL, 1 },
107108
{ "cat", required_argument, NULL, 2 },
109+
{ "staging", required_argument, NULL, 5 },
108110
{ NULL, 0, NULL, 0 },
109111
};
110112
struct xbps_handle xh;
@@ -208,6 +210,9 @@ main(int argc, char **argv)
208210
xbps_repo_store(&xh, optarg);
209211
repo_mode = true;
210212
break;
213+
case 5:
214+
flags |= XBPS_FLAG_USE_STAGE;
215+
break;
211216
case '?':
212217
default:
213218
usage(true);

bin/xbps-query/xbps-query.1

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,8 @@ and
127127
modes.
128128
.It Fl -fulldeptree
129129
Prints a full dependency tree in the
130+
.It Fl -staging
131+
Enables the use of staged packages from remote repositories.
130132
.Sy show dependencies
131133
mode.
132134
.It Fl r, Fl -rootdir Ar dir

0 commit comments

Comments
 (0)