opkg: mark the pkg SF as !SF_FILELIST_CHANGED after write back.
[oweals/opkg-lede.git] / libopkg / pkg.c
index 6c07b840b8c978e194e49abdb42f89d37868b084..cc15c9b62d30a1b408b4ae52cfaa0559613b6399 100644 (file)
@@ -1808,6 +1808,8 @@ int pkg_write_filelist(opkg_conf_t *conf, pkg_t *pkg)
      fclose(data.stream);
      free(list_file_name);
 
+     pkg->state_flag &= ~SF_FILELIST_CHANGED;
+
      return err;
 }