Skip to content

Commit

Permalink
bin/xbps-install: add --staged flag
Browse files Browse the repository at this point in the history
  • Loading branch information
Duncaen committed Oct 31, 2023
1 parent 354ce90 commit ff468c6
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
5 changes: 5 additions & 0 deletions bin/xbps-install/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ usage(bool fail)
" This option can be specified multiple times\n"
" -r, --rootdir <dir> Full path to rootdir\n"
" --reproducible Enable reproducible mode in pkgdb\n"
" --staged Enable staged packages\n"
" -S, --sync Sync remote repository index\n"
" -u, --update Update target package(s)\n"
" -v, --verbose Verbose messages\n"
Expand Down Expand Up @@ -118,6 +119,7 @@ main(int argc, char **argv)
{ "version", no_argument, NULL, 'V' },
{ "yes", no_argument, NULL, 'y' },
{ "reproducible", no_argument, NULL, 1 },
{ "staged", no_argument, NULL, 2 },
{ NULL, 0, NULL, 0 }
};
struct xbps_handle xh;
Expand All @@ -138,6 +140,9 @@ main(int argc, char **argv)
case 1:
flags |= XBPS_FLAG_INSTALL_REPRO;
break;
case 2:
flags |= XBPS_FLAG_USE_STAGE;
break;
case 'A':
flags |= XBPS_FLAG_INSTALL_AUTO;
break;
Expand Down
2 changes: 2 additions & 0 deletions bin/xbps-install/xbps-install.1
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,8 @@ The
and
.Ar repository
package objects are not stored in pkgdb.
.It Fl -staged
Enables the use of staged packages from remote repositories.
.It Fl r , Fl -rootdir Ar dir
Specifies a full path for the target root directory.
.It Fl S , Fl -sync
Expand Down

0 comments on commit ff468c6

Please sign in to comment.