set_flags_from_control: remove function
[oweals/opkg-lede.git] / libopkg / opkg_install.c
index e18c7c6bc19b8285dd65180e1f58195666e1c681..ccf6f455377674a922768270a049d2f162fdf6fc 100644 (file)
@@ -1090,13 +1090,6 @@ static int install_data_files(pkg_t * pkg)
                return err;
        }
 
-       /* The "Essential" control field may only be present in the control
-        * file and not in the Packages list. Ensure we capture it regardless.
-        *
-        * XXX: This should be fixed outside of opkg, in the Package list.
-        */
-       set_flags_from_control(pkg);
-
        opkg_msg(DEBUG, "Calling pkg_write_filelist.\n");
        err = pkg_write_filelist(pkg);
        if (err)