From: nico Date: Wed, 10 Jan 2007 11:59:42 +0000 (+0000) Subject: add a hack to allow source package names in Build-Depends: (PKG_BUILDDEP) X-Git-Url: http://git.ozo.com/?p=openwrt-10.03%2F.git;a=commitdiff_plain;h=4c42a84530c4f68377dc4aa06cc3bba3227d8dd9 add a hack to allow source package names in Build-Depends: (PKG_BUILDDEP) git-svn-id: svn://svn.openwrt.org/openwrt/trunk@6060 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- diff --git a/scripts/gen_deps.pl b/scripts/gen_deps.pl index af206f004..0fc80aae8 100755 --- a/scripts/gen_deps.pl +++ b/scripts/gen_deps.pl @@ -28,6 +28,8 @@ while ($line = <>) { $line =~ /^Source-Makefile: \s*(.+\/([^\/]+)\/Makefile)\s*$/ and do { $makefile = $1; $src = $2; + defined $pkg{$src} or $pkg{$src} = {}; + $pkg{$src}->{src} = $src; }; $line =~ /^Package: \s*(.+)\s*$/ and do { $name = $1;