mirror of
https://github.com/moparisthebest/pacman
synced 2025-01-09 21:08:11 -05:00
pacman: remove --dbonly shortopt
This is somewhat of a dangerous option with limited use cases. Don't advertise it as an easily accessibly option. Signed-off-by: Dave Reisner <dreisner@archlinux.org> Signed-off-by: Dan McGee <dan@archlinux.org>
This commit is contained in:
parent
725edde73f
commit
6e4f695a0f
@ -177,7 +177,7 @@ Transaction Options (apply to '-S', '-R' and '-U')
|
|||||||
dependencies are installed and there are no package conflicts in the
|
dependencies are installed and there are no package conflicts in the
|
||||||
system. Specify this option twice to skip all dependency checks.
|
system. Specify this option twice to skip all dependency checks.
|
||||||
|
|
||||||
*-k, \--dbonly*::
|
*\--dbonly*::
|
||||||
Adds/Removes the database entry only, leaves all files in place.
|
Adds/Removes the database entry only, leaves all files in place.
|
||||||
|
|
||||||
*\--noprogressbar*::
|
*\--noprogressbar*::
|
||||||
|
@ -124,7 +124,8 @@ enum {
|
|||||||
OP_ARCH,
|
OP_ARCH,
|
||||||
OP_PRINTFORMAT,
|
OP_PRINTFORMAT,
|
||||||
OP_GPGDIR,
|
OP_GPGDIR,
|
||||||
OP_RECURSIVE
|
OP_RECURSIVE,
|
||||||
|
OP_DBONLY
|
||||||
};
|
};
|
||||||
|
|
||||||
/* clean method */
|
/* clean method */
|
||||||
|
@ -189,7 +189,7 @@ static void usage(int op, const char * const myname)
|
|||||||
/* pass through */
|
/* pass through */
|
||||||
case PM_OP_REMOVE:
|
case PM_OP_REMOVE:
|
||||||
addlist(_(" -d, --nodeps skip dependency version checks (-dd to skip all checks)\n"));
|
addlist(_(" -d, --nodeps skip dependency version checks (-dd to skip all checks)\n"));
|
||||||
addlist(_(" -k, --dbonly only modify database entries, not package files\n"));
|
addlist(_(" --dbonly only modify database entries, not package files\n"));
|
||||||
addlist(_(" --noprogressbar do not show a progress bar when downloading files\n"));
|
addlist(_(" --noprogressbar do not show a progress bar when downloading files\n"));
|
||||||
addlist(_(" --noscriptlet do not execute the install scriptlet if one exists\n"));
|
addlist(_(" --noscriptlet do not execute the install scriptlet if one exists\n"));
|
||||||
addlist(_(" --print print the targets instead of performing the operation\n"));
|
addlist(_(" --print print the targets instead of performing the operation\n"));
|
||||||
@ -488,7 +488,7 @@ static int parsearg_trans(int opt)
|
|||||||
config->flags |= ALPM_TRANS_FLAG_NODEPVERSION;
|
config->flags |= ALPM_TRANS_FLAG_NODEPVERSION;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case 'k': config->flags |= ALPM_TRANS_FLAG_DBONLY; break;
|
case OP_DBONLY: config->flags |= ALPM_TRANS_FLAG_DBONLY; break;
|
||||||
case OP_NOPROGRESSBAR: config->noprogressbar = 1; break;
|
case OP_NOPROGRESSBAR: config->noprogressbar = 1; break;
|
||||||
case OP_NOSCRIPTLET: config->flags |= ALPM_TRANS_FLAG_NOSCRIPTLET; break;
|
case OP_NOSCRIPTLET: config->flags |= ALPM_TRANS_FLAG_NOSCRIPTLET; break;
|
||||||
case 'p': config->print = 1; break;
|
case 'p': config->print = 1; break;
|
||||||
@ -600,7 +600,6 @@ static int parseargs(int argc, char *argv[])
|
|||||||
{"groups", no_argument, 0, 'g'},
|
{"groups", no_argument, 0, 'g'},
|
||||||
{"help", no_argument, 0, 'h'},
|
{"help", no_argument, 0, 'h'},
|
||||||
{"info", no_argument, 0, 'i'},
|
{"info", no_argument, 0, 'i'},
|
||||||
{"dbonly", no_argument, 0, 'k'},
|
|
||||||
{"check", no_argument, 0, 'k'},
|
{"check", no_argument, 0, 'k'},
|
||||||
{"list", no_argument, 0, 'l'},
|
{"list", no_argument, 0, 'l'},
|
||||||
{"foreign", no_argument, 0, 'm'},
|
{"foreign", no_argument, 0, 'm'},
|
||||||
@ -636,6 +635,7 @@ static int parseargs(int argc, char *argv[])
|
|||||||
{"print-format", required_argument, 0, OP_PRINTFORMAT},
|
{"print-format", required_argument, 0, OP_PRINTFORMAT},
|
||||||
{"gpgdir", required_argument, 0, OP_GPGDIR},
|
{"gpgdir", required_argument, 0, OP_GPGDIR},
|
||||||
{"recursive", no_argument, 0, OP_RECURSIVE},
|
{"recursive", no_argument, 0, OP_RECURSIVE},
|
||||||
|
{"dbonly", no_argument, 0, OP_DBONLY},
|
||||||
{0, 0, 0, 0}
|
{0, 0, 0, 0}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user