Content deleted Content added
Updating published sources: SourceUploader: * Create empty shutoff pages if they don't exist, after a discussion where someone was confused by the non-existent page. |
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 67:
$basedir=~s{/$}{};
if(!-d $basedir){
return $self;
}
Line 73:
$self->{'summary'}='Updating published sources: ';
if(!open(X, "<", 'ChangeLog')){
return $self;
}
Line 101:
while(my $dir=shift @dirs){
if(!opendir(D, $dir)){
return $self;
}
Line 124:
next if ($stat[2]&(S_IROTH))!=(S_IROTH);
if(!open(X, '<:utf8', $p)){
return $self;
}
Line 212:
$img='Gnome-fs-regular.svg';
} else {
}
my $sz=$stat[7];
Line 258:
my @shutoff=@{$self->{'shutoff_pages'}};
if(!@keys && !@shutoff && !exists($self->{'tasklist'})){
$self->
return undef;
}
$api->task('SourceUploader', 0, 10,
my $src='User:'.$api->user.'/source';
Line 328:
return 60;
} else {
$api->
}
}
Line 360:
return 60;
} else {
$api->
}
} else {
$api->
}
return 0;
|