From 5d1f7db216c5cc3ea3357b4f8fc36308856cd135 Mon Sep 17 00:00:00 2001 From: ticktock35 Date: Sun, 14 Dec 2008 23:46:49 -0500 Subject: opkg: add autoremove command line option git-svn-id: http://opkg.googlecode.com/svn/trunk@37 e8e0d7a0-c8d9-11dd-a880-a1081c7ac358 --- (limited to 'libopkg/opkg_conf.c') diff --git a/libopkg/opkg_conf.c b/libopkg/opkg_conf.c index abeab19..8bb872c 100644 --- a/libopkg/opkg_conf.c +++ b/libopkg/opkg_conf.c @@ -231,6 +231,9 @@ int opkg_conf_init(opkg_conf_t *conf, const args_t *args) right now it is ridiculous. Maybe opkg_conf_t should just save a pointer to args_t (which could then not be freed), rather than duplicating every field here? */ + if (args->autoremove) { + conf->autoremove = 1; + } if (args->force_depends) { conf->force_depends = 1; } -- cgit v0.9.1