mirror of
https://github.com/moparisthebest/pacman
synced 2024-08-13 17:03:46 -04:00
backported support for print-uris from pacman 2.9.x
This commit is contained in:
parent
54593f515a
commit
3fa2b0e3bd
@ -366,6 +366,7 @@ int parseargs(int argc, char **argv)
|
|||||||
{"nosave", no_argument, 0, 'n'},
|
{"nosave", no_argument, 0, 'n'},
|
||||||
{"owns", no_argument, 0, 'o'},
|
{"owns", no_argument, 0, 'o'},
|
||||||
{"file", no_argument, 0, 'p'},
|
{"file", no_argument, 0, 'p'},
|
||||||
|
{"print-uris", no_argument, 0, 'p'},
|
||||||
{"root", required_argument, 0, 'r'},
|
{"root", required_argument, 0, 'r'},
|
||||||
{"recursive", no_argument, 0, 's'},
|
{"recursive", no_argument, 0, 's'},
|
||||||
{"search", no_argument, 0, 's'},
|
{"search", no_argument, 0, 's'},
|
||||||
@ -420,7 +421,7 @@ int parseargs(int argc, char **argv)
|
|||||||
case 'l': pmo_q_list = 1; break;
|
case 'l': pmo_q_list = 1; break;
|
||||||
case 'n': pmo_flags |= PM_TRANS_FLAG_NOSAVE; break;
|
case 'n': pmo_flags |= PM_TRANS_FLAG_NOSAVE; break;
|
||||||
case 'o': pmo_q_owns = 1; break;
|
case 'o': pmo_q_owns = 1; break;
|
||||||
case 'p': pmo_q_isfile = 1; break;
|
case 'p': pmo_q_isfile = 1; pmo_s_printuris = 1; break;
|
||||||
case 'r':
|
case 'r':
|
||||||
if(realpath(optarg, root) == NULL) {
|
if(realpath(optarg, root) == NULL) {
|
||||||
perror("bad root path");
|
perror("bad root path");
|
||||||
|
Loading…
Reference in New Issue
Block a user