summaryrefslogtreecommitdiffstats
path: root/libopkg
diff options
context:
space:
mode:
authorgraham.gower <graham.gower@e8e0d7a0-c8d9-11dd-a880-a1081c7ac358>2009-12-17 19:46:43 (EST)
committer graham.gower <graham.gower@e8e0d7a0-c8d9-11dd-a880-a1081c7ac358>2009-12-17 19:46:43 (EST)
commit743aa6642e39c5f20a79e675ee509941da0f728a (patch)
tree47da156efbffab16607bf86a8fe1758a7f47756a /libopkg
parent23f45a934e9315c8f6f235f614e376771b737621 (diff)
Running a script does not change the state, modifying the state flags does.
git-svn-id: http://opkg.googlecode.com/svn/trunk@500 e8e0d7a0-c8d9-11dd-a880-a1081c7ac358
Diffstat (limited to 'libopkg')
-rw-r--r--libopkg/opkg_cmd.c1
-rw-r--r--libopkg/opkg_configure.c1
2 files changed, 1 insertions, 1 deletions
diff --git a/libopkg/opkg_cmd.c b/libopkg/opkg_cmd.c
index 2107fc4..88a0b5f 100644
--- a/libopkg/opkg_cmd.c
+++ b/libopkg/opkg_cmd.c
@@ -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;
diff --git a/libopkg/opkg_configure.c b/libopkg/opkg_configure.c
index 154d3e6..4aca0f0 100644
--- a/libopkg/opkg_configure.c
+++ b/libopkg/opkg_configure.c
@@ -38,7 +38,6 @@ opkg_configure(pkg_t *pkg)
return err;
}
- opkg_state_changed++;
return 0;
}