summaryrefslogtreecommitdiffstats
path: root/libopkg
diff options
context:
space:
mode:
authorgraham.gower <graham.gower@e8e0d7a0-c8d9-11dd-a880-a1081c7ac358>2009-11-19 01:29:58 (EST)
committer graham.gower <graham.gower@e8e0d7a0-c8d9-11dd-a880-a1081c7ac358>2009-11-19 01:29:58 (EST)
commitb25d96944364269c61835d7a80a9165f0ee95667 (patch)
treefa00ce23a14fd9f4dcfd21d1eb6756a65c3d9c6f /libopkg
parent97e125627ab4fd1ceb974a8a0f4b836403dbaa94 (diff)
Make the Auto-Installed field useful.
git-svn-id: http://opkg.googlecode.com/svn/trunk@338 e8e0d7a0-c8d9-11dd-a880-a1081c7ac358
Diffstat (limited to 'libopkg')
-rw-r--r--libopkg/pkg.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/libopkg/pkg.c b/libopkg/pkg.c
index c41629c..b01db61 100644
--- a/libopkg/pkg.c
+++ b/libopkg/pkg.c
@@ -358,6 +358,9 @@ int pkg_merge(pkg_t *oldpkg, pkg_t *newpkg, int set_status)
return 0;
}
+ if (!oldpkg->auto_installed)
+ oldpkg->auto_installed = newpkg->auto_installed;
+
if (!oldpkg->src)
oldpkg->src = newpkg->src;
if (!oldpkg->dest)