Assume the aggregated content is only going to be in one of the
directories, and so stop if it's successfully removed from the
transientdir.
# any guid whose feed is gone should be removed
if (! exists $feeds{$guid->{feed}}) {
if (exists $guid->{page}) {
# any guid whose feed is gone should be removed
if (! exists $feeds{$guid->{feed}}) {
if (exists $guid->{page}) {
- unlink "$config{srcdir}/".htmlfn($guid->{page});
- unlink $IkiWiki::Plugin::transient::transientdir."/".htmlfn($guid->{page});
+ unlink $IkiWiki::Plugin::transient::transientdir."/".htmlfn($guid->{page})
+ || unlink "$config{srcdir}/".htmlfn($guid->{page});
}
delete $guids{$guid->{guid}};
}
}
delete $guids{$guid->{guid}};
}