From 27be34c09bfe14ab0b4b2c96092ae0b60ca16555 Mon Sep 17 00:00:00 2001 From: Aurelien Foret Date: Tue, 7 Mar 2006 18:17:03 +0000 Subject: added a NOSCRIPLET flag to transactions (patch from VMiklos ) --- src/pacman/pacman.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src') 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 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 set an alternate installation root\n"); printf(" -b, --dbpath set an alternate database location\n"); -- cgit v1.2.3-70-g09d2