summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjingui.ren <jingui.ren@samsung.com>2018-08-25 15:09:07 +0800
committerjingui.ren <jingui.ren@samsung.com>2018-08-30 13:28:18 +0800
commit5dd405f803888cce66f84304396cb8962d9f10e5 (patch)
tree2a6329aea7aa2cac0d4b53360c7ca7c511678a67
parentb3f4d4798c14cdb37c3e648cdfa675b7768044cb (diff)
downloadbuild-5dd405f803888cce66f84304396cb8962d9f10e5.tar.gz
build-5dd405f803888cce66f84304396cb8962d9f10e5.tar.bz2
build-5dd405f803888cce66f84304396cb8962d9f10e5.zip
fix bugs when build error on x86_64
Change-Id: I86ad3116b36b4cd92e411052c3e6818a7bacf9a8
-rwxr-xr-xexpanddeps11
1 files changed, 9 insertions, 2 deletions
diff --git a/expanddeps b/expanddeps
index dcd0eba..05d6e3e 100755
--- a/expanddeps
+++ b/expanddeps
@@ -230,6 +230,13 @@ while(<F>) {
$r = 1;
} else {
if ($packs_done{$1}) {
+ undef $pkgF;
+ undef $pkgP;
+ undef $pkgR;
+ undef $pkgC;
+ undef $pkgO;
+ undef $pkgr;
+ undef $pkgs;
$r = 0;
} else {
$r = 1;
@@ -252,11 +259,11 @@ while(<F>) {
delete $obs{$i};
delete $rec{$i};
delete $sup{$i};
- $req{$i} = $pkgR;
+ $req{$i} = $pkgR if defined $pkgR;
$con{$i} = $pkgC if defined $pkgC;
$obs{$i} = $pkgO if defined $pkgO;
$rec{$i} = $pkgr if defined $pkgr;
- $sup{$i} = $pkgs if defined $pkgs
+ $sup{$i} = $pkgs if defined $pkgs;
} else {
next if $ids{$1};
$ids{$1} = $2;