diff options
author | John Crispin <blogic@openwrt.org> | 2014-12-02 15:21:50 +0000 |
---|---|---|
committer | John Crispin <blogic@openwrt.org> | 2014-12-02 15:21:50 +0000 |
commit | 4a25cfb1d03afd348bed022ea5c7855020b68d23 (patch) | |
tree | 01c6bb0c4851010aa5e351b15268ab1d3c67f65c /package/system | |
parent | b5070b194e369e79bb729a7617031bfa84bbcc2c (diff) | |
download | upstream-4a25cfb1d03afd348bed022ea5c7855020b68d23.tar.gz upstream-4a25cfb1d03afd348bed022ea5c7855020b68d23.tar.bz2 upstream-4a25cfb1d03afd348bed022ea5c7855020b68d23.zip |
opkg: the PKG_UPGRADE env was not set properly
Signed-off-by: John Crispin <blogic@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@43493 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/system')
-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 b8206f055b..f21008eec6 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)) { |