summaryrefslogtreecommitdiffstats
path: root/libopkg/opkg_conf.c
diff options
context:
space:
mode:
authorticktock35 <ticktock35@e8e0d7a0-c8d9-11dd-a880-a1081c7ac358>2008-12-14 23:46:49 (EST)
committer ticktock35 <ticktock35@e8e0d7a0-c8d9-11dd-a880-a1081c7ac358>2008-12-14 23:46:49 (EST)
commit5d1f7db216c5cc3ea3357b4f8fc36308856cd135 (patch)
tree72dcae3bffda423dcc9b1b0361114483cdf19679 /libopkg/opkg_conf.c
parent06d63167c8aefc168f4fa774908323e556e6a4e9 (diff)
opkg: add autoremove command line option
git-svn-id: http://opkg.googlecode.com/svn/trunk@37 e8e0d7a0-c8d9-11dd-a880-a1081c7ac358
Diffstat (limited to 'libopkg/opkg_conf.c')
-rw-r--r--libopkg/opkg_conf.c3
1 files changed, 3 insertions, 0 deletions
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;
}