X-Git-Url: https://git.librecmc.org/?p=oweals%2Fopkg-lede.git;a=blobdiff_plain;f=libopkg%2Fopkg_conf.c;h=8bb872cac90cf542c6f03bc910ff7556b16a675a;hp=abeab19c93577039d14c0acd7575920685d49e14;hb=5d1f7db216c5cc3ea3357b4f8fc36308856cd135;hpb=4b0b7ca249bfa4ecc099c2ca56527eb91776f198 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; }