opkg: add autoremove command line option
[oweals/opkg-lede.git] / libopkg / opkg_conf.c
index abeab19c93577039d14c0acd7575920685d49e14..8bb872cac90cf542c6f03bc910ff7556b16a675a 100644 (file)
@@ -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? */
        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;
      }
      if (args->force_depends) {
          conf->force_depends = 1;
      }