From 094e94ad91159fbe710ac951ff0fa02b1c06b144 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adrian=20Schr=C3=B6ter?= Date: Fri, 9 Nov 2012 09:42:02 +0100 Subject: [PATCH] [backend] fix bs_productconvert to run within test suite and without warning lines --- src/backend/bs_productconvert | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/backend/bs_productconvert b/src/backend/bs_productconvert index 57102de7ae7..a503e567c6a 100755 --- a/src/backend/bs_productconvert +++ b/src/backend/bs_productconvert @@ -24,6 +24,8 @@ BEGIN { my ($wd) = $0 =~ m-(.*)/- ; $wd ||= '.'; + chdir($wd); + unshift @INC, "$wd/build"; unshift @INC, "$wd"; } @@ -1266,7 +1268,7 @@ foreach my $medium ( @$media ){ next if( $opt_m && $name ne $opt_m ); # create one kiwi file each for every of the archsets - if ( defined(@{$medium->{archsets}}) ) { + if (@{$medium->{archsets}}) { my @archSets = @{$medium->{archsets}}; foreach my $arch ( @archSets ) { my @archs;