summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorWerner Almesberger <werner@almesberger.net>2016-11-22 09:20:15 -0300
committerGenerated from internal repo <nobody@neo900.org>2016-11-22 09:20:15 -0300
commitd89bf3f114538aa2002012bff47793a74cdff85c (patch)
treed5d808dab6ceb1a1b5369c3bfb425d4ea5ecb25d /scripts
parentc1e27dea9e34450009cf5c625dcf348af08c8be6 (diff)
downloadee-d89bf3f114538aa2002012bff47793a74cdff85c.tar.gz
ee-d89bf3f114538aa2002012bff47793a74cdff85c.tar.bz2
ee-d89bf3f114538aa2002012bff47793a74cdff85c.zip
scripts/conncmp.pl: make pins completely missing on one side non-fatal
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/conncmp.pl7
1 files changed, 5 insertions, 2 deletions
diff --git a/scripts/conncmp.pl b/scripts/conncmp.pl
index 86b27de..7de7db2 100755
--- a/scripts/conncmp.pl
+++ b/scripts/conncmp.pl
@@ -60,7 +60,10 @@ for (@eq) {
}
PIN: for $pin (keys %a) {
- die "A.$pin has no matching B.$pin" unless defined $b{$pin};
+ if (!defined $b{$pin}) {
+ warn "A.$pin has no matching B.$pin\n";
+ next;
+ }
my $a = $a{$pin};
my $b = $b{$pin};
delete $b{$pin};
@@ -82,5 +85,5 @@ PIN: for $pin (keys %a) {
}
for $pin (keys %b) {
- die "B.$pin has no matching A.$pin";
+ warn "B.$pin has no matching A.$pin\n";
}