From f0463978ddbcfd963819022c2da8e04ff310720c Mon Sep 17 00:00:00 2001 From: pixdamix Date: Tue, 05 Jan 2010 12:18:04 -0500 Subject: Add an option to download packages but do not install/upgrade anything git-svn-id: http://opkg.googlecode.com/svn/trunk@512 e8e0d7a0-c8d9-11dd-a880-a1081c7ac358 --- (limited to 'src/opkg-cl.c') diff --git a/src/opkg-cl.c b/src/opkg-cl.c index 63ebf8c..7a2bbf3 100644 --- a/src/opkg-cl.c +++ b/src/opkg-cl.c @@ -40,6 +40,7 @@ enum { ARGS_OPT_FORCE_REMOVAL_OF_ESSENTIAL_PACKAGES, ARGS_OPT_FORCE_SPACE, ARGS_OPT_NOACTION, + ARGS_OPT_DOWNLOAD_ONLY, ARGS_OPT_NODEPS, ARGS_OPT_AUTOREMOVE, ARGS_OPT_CACHE, @@ -74,6 +75,7 @@ static struct option long_options[] = { {"force_removal_of_essential_packages", 0, 0, ARGS_OPT_FORCE_REMOVAL_OF_ESSENTIAL_PACKAGES}, {"noaction", 0, 0, ARGS_OPT_NOACTION}, + {"download-only", 0, 0, ARGS_OPT_DOWNLOAD_ONLY}, {"nodeps", 0, 0, ARGS_OPT_NODEPS}, {"offline", 1, 0, 'o'}, {"offline-root", 1, 0, 'o'}, @@ -157,6 +159,9 @@ args_parse(int argc, char *argv[]) case ARGS_OPT_NOACTION: conf->noaction = 1; break; + case ARGS_OPT_DOWNLOAD_ONLY: + conf->download_only = 1; + break; case ':': parse_err = -1; break; @@ -235,6 +240,7 @@ usage() printf("\t--force-downgrade Allow opkg to downgrade packages\n"); printf("\t--force-space Disable free space checks\n"); printf("\t--noaction No action -- test only\n"); + printf("\t--download-only No action -- download only\n"); printf("\t--nodeps Do not follow dependences\n"); printf("\t--force-removal-of-dependent-packages\n"); printf("\t Remove package and all dependencies\n"); -- cgit v0.9.1