Running a script does not change the state, modifying the state flags does.
[oweals/opkg-lede.git] / libopkg / opkg_cmd.c
index a33559019892fe6f79a75cdc6a67c19f09bd8655..88a0b5f13fb5e8baae7200dbb78b9ce83e6ef478 100644 (file)
@@ -38,7 +38,6 @@
 #include "opkg_upgrade.h"
 #include "opkg_remove.h"
 #include "opkg_configure.h"
-#include "libopkg.h"
 #include "xsystem.h"
 
 static void
@@ -401,6 +400,7 @@ opkg_configure_packages(char *pkg_name)
                    pkg->state_status = SS_INSTALLED;
                    pkg->parent->state_status = SS_INSTALLED;
                    pkg->state_flag &= ~SF_PREFER;
+                   opkg_state_changed++;
               } else {
                    if (!err)
                        err = r;