diff options
author | pixdamix@gmail.com <pixdamix@gmail.com@e8e0d7a0-c8d9-11dd-a880-a1081c7ac358> | 2012-01-19 08:52:06 (EST) |
---|---|---|
committer | pixdamix@gmail.com <pixdamix@gmail.com@e8e0d7a0-c8d9-11dd-a880-a1081c7ac358> | 2012-01-19 08:52:06 (EST) |
commit | 319d02609992273e887242ed9788db68d3310b6c (patch) | |
tree | a6ed200c720e565f04813f9ff6b3feeb91b6e832 | |
parent | 1d9fe6093125be143fde351305214051afc5ec3b (diff) |
Fixed opkg losing auto_installed flag on upgrading
Thanks-to: Christian Hitz <christian.hitz@aizo.com>
git-svn-id: http://opkg.googlecode.com/svn/trunk@635 e8e0d7a0-c8d9-11dd-a880-a1081c7ac358
-rw-r--r-- | libopkg/opkg_install.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libopkg/opkg_install.c b/libopkg/opkg_install.c index 74a2ce1..3925f58 100644 --- a/libopkg/opkg_install.c +++ b/libopkg/opkg_install.c @@ -1449,6 +1449,9 @@ opkg_install_pkg(pkg_t *pkg, int from_upgrade) /* removing files from old package, to avoid ghost files */ remove_data_files_and_list(old_pkg); remove_maintainer_scripts(old_pkg); + + /* maintain the "Auto-Installed: yes" flag */ + pkg->auto_installed = old_pkg->auto_installed; } |