chiark
/
gitweb
/
~ianmdlvl
/
dgit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Infra: Add drs-cron-wrap
[dgit.git]
/
infra
/
dgit-repos-policy-debian
diff --git
a/infra/dgit-repos-policy-debian
b/infra/dgit-repos-policy-debian
index 4af7551c512014b0224f348ac44603415cc0b48c..b21f797643a76ea27e19c93e6202c103ec644c21 100755
(executable)
--- a/
infra/dgit-repos-policy-debian
+++ b/
infra/dgit-repos-policy-debian
@@
-461,17
+461,18
@@
my @orgargv = @ARGV;
for (;;) {
@ARGV = @orgargv;
eval {
for (;;) {
@ARGV = @orgargv;
eval {
- poldb_setup(poldb_path($repos));
- $stderr = '';
+ poldb_setup(poldb_path($repos), sub {
+ $poldbh->{HandleError} = sub {
+ return 0 unless $poldbh->err == 5; # SQLITE_BUSY, not in .pm :-(
+ die bless { }, $db_busy_exception;
+ };
- eval ($ENV{'DGIT_RPD_TEST_DBLOOP_HOOK'}//'');
- die $@ if length $@;
- # used by tests/tests/debpolicy-dbretry
+ eval ($ENV{'DGIT_RPD_TEST_DBLOOP_HOOK'}//'');
+ die $@ if length $@;
+ # used by tests/tests/debpolicy-dbretry
+ });
- $poldbh->{HandleError} = sub {
- return 0 unless $poldbh->err == 5; # SQLITE_BUSY, not in .pm :-(
- die bless { }, $db_busy_exception;
- };
+ $stderr = '';
$rcode = $fn->();
die unless defined $rcode;
$rcode = $fn->();
die unless defined $rcode;