summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAurelien Foret <aurelien@archlinux.org>2006-03-07 18:17:03 +0000
committerAurelien Foret <aurelien@archlinux.org>2006-03-07 18:17:03 +0000
commit27be34c09bfe14ab0b4b2c96092ae0b60ca16555 (patch)
treee7c84a0ae0a030b5664d07af3cbfb29c0e94f17b /src
parent1bd8f57a183db0b9be503eeff3027c4b8d65627d (diff)
downloadpacman-27be34c09bfe14ab0b4b2c96092ae0b60ca16555.tar.xz
added a NOSCRIPLET flag to transactions (patch from VMiklos <vmiklos@frugalware.org>)
Diffstat (limited to 'src')
-rw-r--r--src/pacman/pacman.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/pacman/pacman.c b/src/pacman/pacman.c
index 3d62ee69..d9728d87 100644
--- a/src/pacman/pacman.c
+++ b/src/pacman/pacman.c
@@ -309,6 +309,7 @@ int parseargs(int argc, char *argv[])
{"ignore", required_argument, 0, 1002},
{"debug", required_argument, 0, 1003},
{"noprogressbar", no_argument, 0, 1004},
+ {"noscriptlet", no_argument, 0, 1005},
{0, 0, 0, 0}
};
char root[PATH_MAX];
@@ -329,6 +330,7 @@ int parseargs(int argc, char *argv[])
case 1002: config->op_s_ignore = list_add(config->op_s_ignore, strdup(optarg)); break;
case 1003: config->debug = atoi(optarg); break;
case 1004: config->noprogressbar = 1; break;
+ case 1005: config->flags |= PM_TRANS_FLAG_NOSCRIPTLET; break;
case 'A': config->op = (config->op != PM_OP_MAIN ? 0 : PM_OP_ADD); break;
case 'D':
config->op = (config->op != PM_OP_MAIN ? 0 : PM_OP_DEPTEST);
@@ -496,6 +498,7 @@ void usage(int op, char *myname)
printf(" --config <path> set an alternate configuration file\n");
printf(" --noconfirm do not ask for anything confirmation\n");
printf(" --noprogressbar do not show a progress bar when downloading files\n");
+ printf(" --noscriptlet do not execute the install scriptlet if there is any\n");
printf(" -v, --verbose be verbose\n");
printf(" -r, --root <path> set an alternate installation root\n");
printf(" -b, --dbpath <path> set an alternate database location\n");