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-25 15:09:07 +0800
commit56418cf45723347b6298f13ac6e9c3d79cfd2faa (patch)
tree02ce9ba03881c20b578aad24a6d16e3a3fa5aab2
parentd8a82812728160f98d9ad8a57d148641c1f117f7 (diff)
downloadbuild-56418cf45723347b6298f13ac6e9c3d79cfd2faa.tar.gz
build-56418cf45723347b6298f13ac6e9c3d79cfd2faa.tar.bz2
build-56418cf45723347b6298f13ac6e9c3d79cfd2faa.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;