diff options
author | John Crispin <john@openwrt.org> | 2014-12-02 15:21:50 +0000 |
---|---|---|
committer | John Crispin <john@openwrt.org> | 2014-12-02 15:21:50 +0000 |
commit | 5698e62ecb35a031252311075dde8dadbb19bc23 (patch) | |
tree | 6b8b2781728266660d4a4c53b03a68eaa090ad88 /package/system/opkg | |
parent | 3b1b3c5067e7e614498b20b5eae25e50e79fb436 (diff) | |
download | mtk-20170518-5698e62ecb35a031252311075dde8dadbb19bc23.zip mtk-20170518-5698e62ecb35a031252311075dde8dadbb19bc23.tar.gz mtk-20170518-5698e62ecb35a031252311075dde8dadbb19bc23.tar.bz2 |
opkg: the PKG_UPGRADE env was not set properly
Signed-off-by: John Crispin <blogic@openwrt.org>
SVN-Revision: 43493
Diffstat (limited to 'package/system/opkg')
-rw-r--r-- | package/system/opkg/patches/110-upgrade.patch | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/package/system/opkg/patches/110-upgrade.patch b/package/system/opkg/patches/110-upgrade.patch index b8206f0..f21008e 100644 --- a/package/system/opkg/patches/110-upgrade.patch +++ b/package/system/opkg/patches/110-upgrade.patch @@ -24,9 +24,9 @@ Index: opkg-9c97d5ecd795709c8584e972bfdf3aee3a5b846d/libopkg/pkg.c pkg->dest ? pkg->dest->root_dir : conf->default_dest->root_dir, 1); + if (pkg->is_upgrade) -+ setenv("PKG_UPGRADE", "1", 0); ++ setenv("PKG_UPGRADE", "1", 1); + else -+ setenv("PKG_UPGRADE", "0", 0); ++ setenv("PKG_UPGRADE", "0", 1); + + if (! file_exists(path)) { |