We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8f26ad7 commit 5c7ee3dCopy full SHA for 5c7ee3d
bin/xbps-query/main.c
@@ -51,6 +51,7 @@ usage(bool fail)
51
" --repository <url> Enable repository mode and add repository\n"
52
" to the top of the list. This option can be\n"
53
" specified multiple times\n"
54
+ " --staging Enable use of staged packages\n"
55
" --regex Use Extended Regular Expressions to match\n"
56
" --fulldeptree Full dependency tree for -x/--deps\n"
57
" -r, --rootdir <dir> Full path to rootdir\n"
@@ -105,6 +106,7 @@ main(int argc, char **argv)
105
106
{ "regex", no_argument, NULL, 0 },
107
{ "fulldeptree", no_argument, NULL, 1 },
108
{ "cat", required_argument, NULL, 2 },
109
+ { "staging", required_argument, NULL, 5 },
110
{ NULL, 0, NULL, 0 },
111
};
112
struct xbps_handle xh;
@@ -208,6 +210,9 @@ main(int argc, char **argv)
208
210
xbps_repo_store(&xh, optarg);
209
211
repo_mode = true;
212
break;
213
+ case 5:
214
+ flags |= XBPS_FLAG_USE_STAGE;
215
+ break;
216
case '?':
217
default:
218
usage(true);
bin/xbps-query/xbps-query.1
@@ -127,6 +127,8 @@ and
127
modes.
128
.It Fl -fulldeptree
129
Prints a full dependency tree in the
130
+.It Fl -staging
131
+Enables the use of staged packages from remote repositories.
132
.Sy show dependencies
133
mode.
134
.It Fl r, Fl -rootdir Ar dir
0 commit comments