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 2107fc4f54843b822f8319f03ec6eda49b44ffa8..88a0b5f13fb5e8baae7200dbb78b9ce83e6ef478 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 154d3e6f30bbdaebd1b025fd055eb26c47b0c141..4aca0f07111141e64a02c38a5c916e1bf866c753 100644 (file)
@@ -38,7 +38,6 @@ opkg_configure(pkg_t *pkg)
        return err;
     }
 
-    opkg_state_changed++;
     return 0;
 }