Преглед изворни кода

add a hack to allow source package names in Build-Depends: (PKG_BUILDDEP)

SVN-Revision: 6060
Nicolas Thill пре 19 година
родитељ
комит
bf3654cc10
1 измењених фајлова са 2 додато и 0 уклоњено
  1. 2 0
      scripts/gen_deps.pl

+ 2 - 0
scripts/gen_deps.pl

@@ -28,6 +28,8 @@ while ($line = <>) {
 	$line =~ /^Source-Makefile: \s*(.+\/([^\/]+)\/Makefile)\s*$/ and do {
 	$line =~ /^Source-Makefile: \s*(.+\/([^\/]+)\/Makefile)\s*$/ and do {
 		$makefile = $1;
 		$makefile = $1;
 		$src = $2;
 		$src = $2;
+		defined $pkg{$src} or $pkg{$src} = {};
+		$pkg{$src}->{src} = $src;
 	};
 	};
 	$line =~ /^Package: \s*(.+)\s*$/ and do {
 	$line =~ /^Package: \s*(.+)\s*$/ and do {
 		$name = $1;
 		$name = $1;