backported support for print-uris from pacman 2.9.x

This commit is contained in:
Aurelien Foret 2005-04-13 19:16:32 +00:00
parent 54593f515a
commit 3fa2b0e3bd
1 changed files with 7 additions and 6 deletions

View File

@ -366,6 +366,7 @@ int parseargs(int argc, char **argv)
{"nosave", no_argument, 0, 'n'},
{"owns", no_argument, 0, 'o'},
{"file", no_argument, 0, 'p'},
{"print-uris", no_argument, 0, 'p'},
{"root", required_argument, 0, 'r'},
{"recursive", 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 'n': pmo_flags |= PM_TRANS_FLAG_NOSAVE; 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':
if(realpath(optarg, root) == NULL) {
perror("bad root path");