1 Upstream-Status: Backport
3 From 319d02609992273e887242ed9788db68d3310b6c Mon Sep 17 00:00:00 2001
4 From: "pixdamix@gmail.com"
5 <pixdamix@gmail.com@e8e0d7a0-c8d9-11dd-a880-a1081c7ac358>
6 Date: Thu, 19 Jan 2012 13:52:06 +0000
7 Subject: [PATCH 01/10] Fixed opkg losing auto_installed flag on upgrading
9 Thanks-to: Christian Hitz <christian.hitz@aizo.com>
11 git-svn-id: http://opkg.googlecode.com/svn/trunk@635 e8e0d7a0-c8d9-11dd-a880-a1081c7ac358
13 libopkg/opkg_install.c | 3 +++
14 1 file changed, 3 insertions(+)
16 diff --git a/libopkg/opkg_install.c b/libopkg/opkg_install.c
17 index 74a2ce1..3925f58 100644
18 --- a/libopkg/opkg_install.c
19 +++ b/libopkg/opkg_install.c
20 @@ -1449,6 +1449,9 @@ opkg_install_pkg(pkg_t *pkg, int from_upgrade)
21 /* removing files from old package, to avoid ghost files */
22 remove_data_files_and_list(old_pkg);
23 remove_maintainer_scripts(old_pkg);
25 + /* maintain the "Auto-Installed: yes" flag */
26 + pkg->auto_installed = old_pkg->auto_installed;