opkg: the PKG_UPGRADE env was not set properly
Signed-off-by: John Crispin <blogic@openwrt.org> SVN-Revision: 43493
This commit is contained in:
parent
3b1b3c5067
commit
5698e62ecb
1 changed files with 2 additions and 2 deletions
|
@ -24,9 +24,9 @@ Index: opkg-9c97d5ecd795709c8584e972bfdf3aee3a5b846d/libopkg/pkg.c
|
||||||
pkg->dest ? pkg->dest->root_dir : conf->default_dest->root_dir, 1);
|
pkg->dest ? pkg->dest->root_dir : conf->default_dest->root_dir, 1);
|
||||||
|
|
||||||
+ if (pkg->is_upgrade)
|
+ if (pkg->is_upgrade)
|
||||||
+ setenv("PKG_UPGRADE", "1", 0);
|
+ setenv("PKG_UPGRADE", "1", 1);
|
||||||
+ else
|
+ else
|
||||||
+ setenv("PKG_UPGRADE", "0", 0);
|
+ setenv("PKG_UPGRADE", "0", 1);
|
||||||
+
|
+
|
||||||
+
|
+
|
||||||
if (! file_exists(path)) {
|
if (! file_exists(path)) {
|
||||||
|
|
Loading…
Reference in a new issue