mirror of
https://github.com/hak5/wifipineapple-openwrt.git
synced 2025-10-29 16:57:19 +00:00
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
This commit is contained in:
@@ -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)) {
|
||||
|
||||
Reference in New Issue
Block a user