Merge lp:~jose/uwn/fix-ml2fridge into lp:uwn

Proposed by José Antonio Rey
Status: Merged
Merged at revision: 24
Proposed branch: lp:~jose/uwn/fix-ml2fridge
Merge into: lp:uwn
Diff against target: 34 lines (+11/-7)
1 file modified
fridge/ml2fridge.pl (+11/-7)
To merge this branch: bzr merge lp:~jose/uwn/fix-ml2fridge
Reviewer Review Type Date Requested Status
Elizabeth K. Joseph Pending
Review via email: mp+181460@code.launchpad.net

Description of the change

Fixed fridge/ml2fridge.pl with the same concept as publish-uwn-fridge.pl.

I used the same concept. It will throw a text file with the format "mailing-list, author date" on the fridge folder.

To post a comment you must log in.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'fridge/ml2fridge.pl'
2--- fridge/ml2fridge.pl 2013-07-07 20:05:44 +0000
3+++ fridge/ml2fridge.pl 2013-08-22 05:32:18 +0000
4@@ -15,11 +15,11 @@
5 $ua->env_proxy;
6 $ua->agent('Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.2pre) Gecko/20100225 Ubuntu/9.10 (karmic) Namoroka/3.6.2pre');
7
8-my $o = WordPress::XMLRPC->new({
9- username => 'pleia2',
10- password => 'Leia26Leia26',
11- proxy => 'http://fridge.ubuntu.com/xmlrpc.php',
12-});
13+## my $o = WordPress::XMLRPC->new({
14+## username => 'FRIDGE USERNAME GOES HERE',
15+## password => 'FRIDGE PASSWORD GOES HERE',
16+## proxy => 'http://fridge.ubuntu.com/xmlrpc.php',
17+## });
18
19 $WordPress::XMLRPC::DEBUG = 1;
20
21@@ -63,7 +63,11 @@
22 $post_hashref->{title} = "$title";
23 $post_hashref->{description} = "$post\n\n$cite";
24 # $post_hashref->{categories} = ['Interviews'];
25- my $id = $o->newPost($post_hashref, 0);
26+## my $id = $o->newPost($post_hashref, 0);
27
28- print 'http://fridge.ubuntu.com/wp-admin/post.php?post='.$id.'&action=edit'."\n";
29+## print 'http://fridge.ubuntu.com/wp-admin/post.php?post='.$id.'&action=edit'."\n";
30+ open my $stdout, ">", "$list, $author $date" or die
31+ print "$post\n\n$cite";
32+ print $stdout "$post\n\n$cite";
33+ close $stdout;
34 }

Subscribers

People subscribed via source and target branches