Skip to content

Commit 8f26ad7

Browse files
committed
bin/xbps-install: add --staging flag
1 parent 97e2b77 commit 8f26ad7

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

bin/xbps-install/main.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ usage(bool fail)
6161
" This option can be specified multiple times\n"
6262
" -r, --rootdir <dir> Full path to rootdir\n"
6363
" --reproducible Enable reproducible mode in pkgdb\n"
64+
" --staging Enable use of staged packages\n"
6465
" -S, --sync Sync remote repository index\n"
6566
" -u, --update Update target package(s)\n"
6667
" -v, --verbose Verbose messages\n"
@@ -118,6 +119,7 @@ main(int argc, char **argv)
118119
{ "version", no_argument, NULL, 'V' },
119120
{ "yes", no_argument, NULL, 'y' },
120121
{ "reproducible", no_argument, NULL, 1 },
122+
{ "staging", no_argument, NULL, 2 },
121123
{ NULL, 0, NULL, 0 }
122124
};
123125
struct xbps_handle xh;
@@ -138,6 +140,9 @@ main(int argc, char **argv)
138140
case 1:
139141
flags |= XBPS_FLAG_INSTALL_REPRO;
140142
break;
143+
case 2:
144+
flags |= XBPS_FLAG_USE_STAGE;
145+
break;
141146
case 'A':
142147
flags |= XBPS_FLAG_INSTALL_AUTO;
143148
break;

bin/xbps-install/xbps-install.1

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,8 @@ The
154154
and
155155
.Ar repository
156156
package objects are not stored in pkgdb.
157+
.It Fl -staging
158+
Enables the use of staged packages from remote repositories.
157159
.It Fl r , Fl -rootdir Ar dir
158160
Specifies a full path for the target root directory.
159161
.It Fl S , Fl -sync

0 commit comments

Comments
 (0)