diff options
author | Andrey Ponomarenko <aponomarenko@rosalab.ru> | 2015-08-26 16:20:23 +0300 |
---|---|---|
committer | Andrey Ponomarenko <aponomarenko@rosalab.ru> | 2015-08-26 16:20:23 +0300 |
commit | e32f7ea9f2b8c7c765a1383d9c097fefc5e463aa (patch) | |
tree | 4fc2ff73116a47b31e15c4fd93db08e851a22202 | |
parent | d0d6ef5be4bbc8533275cada2fde4af923587664 (diff) | |
download | abi-compliance-checker-e32f7ea9f2b8c7c765a1383d9c097fefc5e463aa.tar.gz |
Take -relpath option into account in the SysCheck.pm
-rwxr-xr-x | abi-compliance-checker.pl | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/abi-compliance-checker.pl b/abi-compliance-checker.pl index 73ff9f3..96e9700 100755 --- a/abi-compliance-checker.pl +++ b/abi-compliance-checker.pl @@ -22398,7 +22398,13 @@ sub scenario() if(not -f $DumpSystem) { exitStatus("Access_Error", "can't access file \'$DumpSystem\'"); } - my $Ret = readSystemDescriptor(readFile($DumpSystem)); + + my $SDesc = readFile($DumpSystem); + if(my $RelDir = $RelativeDirectory{1}) { + $SDesc =~ s/{RELPATH}/$RelDir/g; + } + + my $Ret = readSystemDescriptor($SDesc); foreach (@{$Ret->{"Tools"}}) { push_U($SystemPaths{"bin"}, $_); |