[Frugalware-darcs] pacman: added a PM_TRANS_FLAG_NOSCRIPTLET flag to libalpm, and a --noscriptlet switch to pacman to use it

VMiklos vmiklos at frugalware.org
Thu Mar 16 17:50:09 CET 2006


[added a PM_TRANS_FLAG_NOSCRIPTLET flag to libalpm, and a --noscriptlet switch to pacman to use it
VMiklos <vmiklos at frugalware.org>**20060304005122] {
hunk ./lib/libalpm/add.c 341
-				if(info->scriptlet) {
+				if(info->scriptlet && !(trans->flags & PM_TRANS_FLAG_NOSCRIPTLET)) {
hunk ./lib/libalpm/add.c 383
-			if(info->scriptlet) {
+			if(info->scriptlet && !(trans->flags & PM_TRANS_FLAG_NOSCRIPTLET)) {
hunk ./lib/libalpm/add.c 782
-		if(info->scriptlet) {
+		if(info->scriptlet && !(trans->flags & PM_TRANS_FLAG_NOSCRIPTLET)) {
hunk ./lib/libalpm/alpm.h 231
+#define PM_TRANS_FLAG_NOSCRIPTLET 0x400
hunk ./lib/libalpm/remove.c 158
-			if(info->scriptlet) {
+			if(info->scriptlet && !(trans->flags & PM_TRANS_FLAG_NOSCRIPTLET)) {
hunk ./lib/libalpm/remove.c 242
-			if(info->scriptlet) {
+			if(info->scriptlet && !(trans->flags & PM_TRANS_FLAG_NOSCRIPTLET)) {
hunk ./src/pacman/pacman.c 323
+		{"noscriptlet", no_argument,      0, 1005},
hunk ./src/pacman/pacman.c 344
+			case 1005: config->flags |= PM_TRANS_FLAG_NOSCRIPTLET; break;
hunk ./src/pacman/pacman.c 515
+		printf("      --noscriptlet   do not execute the install scriptlet if there is any\n");
}


More information about the Frugalware-darcs mailing list