On Wed, 26 Dec 2012 19:12:45 +0100, gregor herrmann wrote: > The send-ping feature doesn't work right now, it complains about > undefined variables.
There's one more bug:
$CONFIG{ 'ping-server-$count' } is not so helpful, we want $count
expanded ... (Otherwise the manually defined ping servers get ignored
and the default ones are used.)
Updated patch attached.
Cheers,
gregor
--
.''`. Homepage: http://info.comodo.priv.at/ - OpenPGP key 0xBB3A68018649AA06
: :' : Debian GNU/Linux user, admin, and developer - http://www.debian.org/
`. `' Member of VIBE!AT & SPI, fellow of the Free Software Foundation Europe
`- NP: Nick Cave And The Bad Seeds: Fable Of The Brown Ape
--- unpacked/usr/bin/chronicle 2011-05-15 20:15:12.000000000 +0200
+++ /usr/bin/chronicle 2012-12-26 19:59:09.276996053 +0100
@@ -518,9 +518,9 @@
my $count = 1;
my $sent = 0;
- while ( defined $CONFIG{ 'ping-server-$count' } )
+ while ( defined $CONFIG{ "ping-server-$count" } )
{
- my $ping = $CONFIG{ 'ping-server-$count' };
+ my $ping = $CONFIG{ "ping-server-$count" };
$CONFIG{ 'verbose' } && print "Sending to: $ping\n";
@@ -528,7 +528,7 @@
# Send to just that specific service
#
system( "chronicle-ping", "--service=$ping",
- "--url=$CONFIG{'prefix'}", "--name=$CONFIG{'blog-title'}" );
+ "--url=$CONFIG{'url_prefix'}", "--name=$CONFIG{'blog_title'}" );
# find next server
$count += 1;
@@ -544,8 +544,8 @@
{
$CONFIG{ 'verbose' } && print "Sending to: default ping servers\n";
- system( "chronicle-ping", "--url=$CONFIG{'prefix'}",
- "--name=$CONFIG{'blog-title'}" );
+ system( "chronicle-ping", "--url=$CONFIG{'url_prefix'}",
+ "--name=$CONFIG{'blog_title'}" );
}
$CONFIG{ 'verbose' } && print "Pings complete.\n";
signature.asc
Description: Digital signature

