diff options
author | google@wwsnet.net <google@wwsnet.net@e8e0d7a0-c8d9-11dd-a880-a1081c7ac358> | 2010-09-12 20:42:01 (EDT) |
---|---|---|
committer | google@wwsnet.net <google@wwsnet.net@e8e0d7a0-c8d9-11dd-a880-a1081c7ac358> | 2010-09-12 20:42:01 (EDT) |
commit | 6dc8a5d00f1f5244d7c3732dbc21b3763e9066b6 (patch) | |
tree | 4b9d6b25a21478a2143fd4ff25aa579aeeeece59 /src | |
parent | f637389e79f9fb04b73d4fe254fea63e9b077a94 (diff) |
implement --force-postinstall option, this allows forcing the execution of postinstall scripts in offline root mode
git-svn-id: http://opkg.googlecode.com/svn/trunk@559 e8e0d7a0-c8d9-11dd-a880-a1081c7ac358
Diffstat (limited to 'src')
-rw-r--r-- | src/opkg-cl.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/opkg-cl.c b/src/opkg-cl.c index a5fc697..3716b5c 100644 --- a/src/opkg-cl.c +++ b/src/opkg-cl.c @@ -39,6 +39,7 @@ enum { ARGS_OPT_FORCE_REMOVAL_OF_DEPENDENT_PACKAGES, ARGS_OPT_FORCE_REMOVAL_OF_ESSENTIAL_PACKAGES, ARGS_OPT_FORCE_SPACE, + ARGS_OPT_FORCE_POSTINSTALL, ARGS_OPT_NOACTION, ARGS_OPT_DOWNLOAD_ONLY, ARGS_OPT_NODEPS, @@ -74,6 +75,8 @@ static struct option long_options[] = { ARGS_OPT_FORCE_REMOVAL_OF_ESSENTIAL_PACKAGES}, {"force_removal_of_essential_packages", 0, 0, ARGS_OPT_FORCE_REMOVAL_OF_ESSENTIAL_PACKAGES}, + {"force-postinstall", 0, 0, ARGS_OPT_FORCE_POSTINSTALL}, + {"force_postinstall", 0, 0, ARGS_OPT_FORCE_POSTINSTALL}, {"noaction", 0, 0, ARGS_OPT_NOACTION}, {"download-only", 0, 0, ARGS_OPT_DOWNLOAD_ONLY}, {"nodeps", 0, 0, ARGS_OPT_NODEPS}, @@ -155,6 +158,9 @@ args_parse(int argc, char *argv[]) case ARGS_OPT_FORCE_SPACE: conf->force_space = 1; break; + case ARGS_OPT_FORCE_POSTINSTALL: + conf->force_postinstall = 1; + break; case ARGS_OPT_NODEPS: conf->nodeps = 1; break; @@ -241,6 +247,7 @@ usage() printf("\t--force-overwrite Overwrite files from other package(s)\n"); printf("\t--force-downgrade Allow opkg to downgrade packages\n"); printf("\t--force-space Disable free space checks\n"); + printf("\t--force-postinstall Run postinstall scripts even in offline mode\n"); printf("\t--noaction No action -- test only\n"); printf("\t--download-only No action -- download only\n"); printf("\t--nodeps Do not follow dependencies\n"); |