Running a script does not change the state, modifying the state flags does.
authorgraham.gower <graham.gower@e8e0d7a0-c8d9-11dd-a880-a1081c7ac358>
Fri, 18 Dec 2009 00:46:43 +0000 (00:46 +0000)
committergraham.gower <graham.gower@e8e0d7a0-c8d9-11dd-a880-a1081c7ac358>
Fri, 18 Dec 2009 00:46:43 +0000 (00:46 +0000)
git-svn-id: http://opkg.googlecode.com/svn/trunk@500 e8e0d7a0-c8d9-11dd-a880-a1081c7ac358

libopkg/opkg_cmd.c
libopkg/opkg_configure.c

index 2107fc4..88a0b5f 100644 (file)
@@ -400,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;
index 154d3e6..4aca0f0 100644 (file)
@@ -38,7 +38,6 @@ opkg_configure(pkg_t *pkg)
        return err;
     }
 
-    opkg_state_changed++;
     return 0;
 }