Skip to Content.
Sympa Menu

devel - Re: [sympa-dev] include_list fallback

Subject: Developers of Sympa

List archive

Chronological Thread  
  • From: Sergiy Zhuk <address@concealed>
  • To: address@concealed
  • Subject: Re: [sympa-dev] include_list fallback
  • Date: Thu, 10 Jan 2002 21:57:36 -0800 (PST)

hi

I couldn't wait, so here's the patch which implements the fallback
mechanism ;)

--
rgds,
serge
Index: List.pm
===================================================================
--- List.pm 2002/01/11 04:42:54 1.14
+++ List.pm 2002/01/11 05:53:55
@@ -5212,6 +5212,14 @@
undef $ref;
untie %users;
close DB_FH;
+
+ unless (defined $total) {
+ if (-f $db_file.'old') {
+ unlink $db_file;
+ rename $db_file.'old', $db_file;
+ $total = 0;
+ }
+ }
}

unless ($ref = tie %users, 'DB_File', $db_file, O_CREAT|O_RDWR, 0600,
$btree) {



Archive powered by MHonArc 2.6.19+.

Top of Page