aboutsummaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2010-09-06 01:43:20 +0000
committerJo-Philipp Wich <jow@openwrt.org>2010-09-06 01:43:20 +0000
commitd069b1594fc3713165f3218df35a23f6e5fed151 (patch)
tree23507ad11c0940ecdb507c69f2d9e6cf8d7528c1 /scripts
parenteff8df9faa272811c590cde5356c450b5698b1ab (diff)
downloadupstream-d069b1594fc3713165f3218df35a23f6e5fed151.tar.gz
upstream-d069b1594fc3713165f3218df35a23f6e5fed151.tar.bz2
upstream-d069b1594fc3713165f3218df35a23f6e5fed151.zip
[scripts] metadata.pl: fix handling of HOST_BUILD_DEPENDS if a package is referenced that only exists as source pkg, e.g. libtool
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@22946 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/metadata.pl7
1 files changed, 4 insertions, 3 deletions
diff --git a/scripts/metadata.pl b/scripts/metadata.pl
index a9242d0a7f..336605f7b0 100755
--- a/scripts/metadata.pl
+++ b/scripts/metadata.pl
@@ -667,14 +667,15 @@ sub gen_package_mk() {
$dep = $1;
$suffix = $2;
}
- my $pkg_dep = $package{$dep};
- next unless $pkg_dep;
my $idx = "";
- if (defined $pkg_dep->{src}) {
+ my $pkg_dep = $package{$dep};
+ if (defined($pkg_dep) && defined($pkg_dep->{src})) {
$idx = $pkg_dep->{subdir}.$pkg_dep->{src};
} elsif (defined($srcpackage{$dep})) {
$idx = $subdir{$dep}.$dep;
+ } else {
+ next;
}
my $depstr = "\$(curdir)/$idx$suffix/compile";
my $depline = get_conditional_dep($condition, $depstr);