User:AnomieBOT/source/tasks/AFDMergeFromCleaner.pm: Difference between revisions

Content deleted Content added
AnomieBOT (talk | contribs)
Updating published sources: General: * BREAKING CHANGE: And it's a big one: ** Data store changed from (binary) Storable to (readable) JSON. update-db.pl will change an existing database. This may affect the exact values storable in the permanent sto
AnomieBOT (talk | contribs)
Updating published sources: General: * BREAKING CHANGE: Split d::Util into several different modules. * Many tasks updated to use log/debug instead of warn. AnomieBOT::API: * Moved warn back into AnomieBOT::API. * New functions: log, debug, halting *
Line 51:
my $res;
 
$api->task('AFDMergeFromCleaner', 0, 10, qw/d::UtilTemplates/);
 
if($self->{'nextrun'}==0 && exists($api->store->{'nextrun'})){
Line 116:
}
 
$api->warnlog("Checking for $template in $title\n");
 
# WTF?
Line 206:
if($outtxt ne $intxt){
my $summary="Removing obsolete {{$template}}";
$api->warnlog("$summary in $title\n");
my $r=$api->edit($tok, $outtxt, $summary.$screwup, 1, 1);
if($r->{'code'} ne 'success'){
Line 264:
if($outtxt ne $intxt){
my $summary="Updating list of non-matching merges";
$api->warnlog("$summary in $report\n");
my $r=$api->edit($tok, $outtxt, $summary.$screwup, 1, 1);
if($r->{'code'} ne 'success'){