[Lsb-messages] /var/www/bzr/lsb/devel/misc-test r2318: Smarter handling of db inconsistency

Denis Silakov denis.silakov at rosalab.ru
Wed Oct 24 15:36:04 UTC 2012


------------------------------------------------------------
revno: 2318
committer: Denis Silakov <denis.silakov at rosalab.ru>
branch nick: misc-test
timestamp: Wed 2012-10-24 19:36:04 +0400
message:
  Smarter handling of db inconsistency
modified:
  dynchk/libs/gen_lib.pl
-------------- next part --------------
=== modified file 'dynchk/libs/gen_lib.pl'
--- a/dynchk/libs/gen_lib.pl	2012-10-18 06:24:21 +0000
+++ b/dynchk/libs/gen_lib.pl	2012-10-24 15:36:04 +0000
@@ -427,8 +427,10 @@
     my ($name, $form, $basetype) = $get_type_info_q->fetchrow_array();
     $get_type_info_q->finish();
 
-    print "empties on Type $type_id; Param number $param_pos in Interface $param_int\n"
-        if($name eq "" or $form eq "" or $basetype eq "");
+    if(not $name or not $form or not $basetype) {
+        print STDERR "empties on Type $type_id; Param number $param_pos in Interface $param_int\n";
+        return "";
+    }
 
     $name =~ s/fptr-//;
 



More information about the lsb-messages mailing list