@@ -94,6 +94,7 @@ show_usage(const char *prog, bool fail)
9494" -R, --repository=<url> Append repository to the head of repository list\n"
9595" -r, --rootdir <dir> Set root directory (defaults to /)\n"
9696" -s, --show-all List all packages, in the format 'pkgname repover srcver'\n"
97+ " --staging Enable use of staged packages\n"
9798"\n [FILES...] Extra packages to process with the outdated\n"
9899" ones (only processed if missing).\n" , prog );
99100 return fail ? EXIT_FAILURE : EXIT_SUCCESS ;
@@ -718,6 +719,7 @@ main(int argc, char **argv)
718719 { "rootdir" , required_argument , NULL , 'r' },
719720 { "show-all" , no_argument , NULL , 's' },
720721 { "version" , no_argument , NULL , 'V' },
722+ { "staging" , no_argument , NULL , 1 },
721723 { NULL , 0 , NULL , 0 }
722724 };
723725
@@ -765,6 +767,9 @@ main(int argc, char **argv)
765767 case 'V' :
766768 printf ("%s\n" , XBPS_RELVER );
767769 exit (EXIT_SUCCESS );
770+ case 1 :
771+ rcv .xhp .flags |= XBPS_FLAG_USE_STAGE ;
772+ break ;
768773 case '?' :
769774 default :
770775 return show_usage (prog , true);
0 commit comments