Commit 25943330 authored by Baptiste Daroussin's avatar Baptiste Daroussin
Browse files

Consistency: all command now take --no-scripts

Before that pkg was inconsistent depending on the command

Fixes: #1116
parent 2842b30b
......@@ -312,7 +312,7 @@ _pkg_args() {
'(-n --dry-run -y --yes)'{-y,--yes}'[assume yes when asked for confirmation]' \
'(-y --yes -n --dry-run)'{-n,--dry-run}'[assume no (dry run) when asked for confirmation]' \
'(-f --force)'{-f,--force}'[force the package(s) to be removed]' \
'(-D --no-deinstall-script)'{-D,--no-deinstall-script}"[don't execute deinstallation scripts]" \
'(-D --no-scripts)'{-D,--no-scripts}"[don't execute deinstallation scripts]" \
'(-R --recursive)'{-R,--recursive}'[delete all packages that require the list packages as well]' \
- '(all)' \
{-a,--all}'[process all packages]' \
......@@ -385,7 +385,7 @@ _pkg_args() {
'(-A --automatic)'{-A,--automatic}'[mark the installed packages as automatic]' \
'(-r --repository)'{-r+,--repository=}'[specify the repository to install packages from]:repository:->repositories' \
'(-U --no-repo-update)'{-U,--no-repo-update}'[suppress the automatic update of the repo catalogue]' \
'(-I --no-install-scripts)'{-I,--no-install-scripts}"[don't execute any pre/post-install scripts]" \
'(-I --no-scripts)'{-I,--no-scripts}"[don't execute any pre/post-install scripts]" \
'(-M --ignore-missing)'{-M,--ignore-missing}'[ignore missing dependencies]' \
'(-n --dry-run -y --yes)'{-y,--yes}'[assume yes when asked for confirmation]' \
'(-y --yes -n --dry-run)'{-n,--dry-run}'[assume no (dry run) when asked for confirmation]' \
......@@ -587,7 +587,7 @@ _pkg_args() {
'(-i --case-insensitive -C --case-sensitive)'{-C,--case-sensitive}'[case sensitive pattern matching]' \
'(-i --case-insensitive -C --case-sensitive)'{-i,--case-insensitive}'[case insensitive pattern matching]' \
'(-U --no-repo-update)'{-U,--no-repo-update}'[suppress the automatic update of the repo catalogue]' \
'(-I --no-install-scripts)'{-I,--no-install-scripts}"[don't execute any pre/post-install scripts]" \
'(-I --no-scripts)'{-I,--no-scripts}"[don't execute any pre/post-install scripts]" \
'(-q --quiet)'{-q,--quiet}'[be quiet]' \
'(-r --repository)'{-r+,--repository=}'[specify the repository to upgrade from]:repository:->repositories' \
'(-g --glob -x --regex)'{-g,--glob}'[process packages that match a glob pattern]' \
......
......@@ -63,7 +63,7 @@ exec_delete(int argc, char **argv)
struct option longopts[] = {
{ "all", no_argument, NULL, 'a' },
{ "case-sensitive", no_argument, NULL, 'C' },
{ "no-deinstall-script", no_argument, NULL, 'D' },
{ "no-scripts", no_argument, NULL, 'D' },
{ "force", no_argument, NULL, 'f' },
{ "glob", no_argument, NULL, 'g' },
{ "case-insensitive", no_argument, NULL, 'i' },
......
......@@ -75,7 +75,7 @@ exec_install(int argc, char **argv)
{ "fetch-only", no_argument, NULL, 'F' },
{ "glob", no_argument, NULL, 'g' },
{ "case-insensitive", no_argument, NULL, 'i' },
{ "no-install-scripts", no_argument, NULL, 'I' },
{ "no-scripts", no_argument, NULL, 'I' },
{ "local-only", no_argument, NULL, 'l' },
{ "ignore-missing", no_argument, NULL, 'M' },
{ "dry-run", no_argument, NULL, 'n' },
......
......@@ -283,7 +283,7 @@ exec_upgrade(int argc, char **argv)
{ "fetch-only", no_argument, NULL, 'F' },
{ "glob", no_argument, NULL, 'g' },
{ "case-insensitive", no_argument, NULL, 'i' },
{ "no-install-scripts", no_argument, NULL, 'I' },
{ "no-scripts", no_argument, NULL, 'I' },
{ "dry-run", no_argument, NULL, 'n' },
{ "quiet", no_argument, NULL, 'q' },
{ "repository", required_argument, NULL, 'r' },
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment