Commit 269b3052 authored by Richard Mansfield's avatar Richard Mansfield

Fix bzr pull command and check for exiting po file

parent f430cb21
......@@ -101,7 +101,8 @@ foreach my $branch (@branches) {
system "bzr branch lp:~mahara-lang/mahara-lang/$branch $BZRDIR/$branch";
}
else {
system "bzr update $BZRDIR/$branch";
chdir "$BZRDIR/$branch";
system "bzr pull";
}
}
......@@ -154,7 +155,7 @@ foreach my $lang (@langkeys) {
if ( $repotype eq 'launchpad' ) {
$currentdir = "$BZRDIR/$branch";
chdir $currentdir;
next if ! -d "$currentdir/mahara/$lang.po";
next if ! -f "$currentdir/mahara/$lang.po";
my $remotecommitcmd = "bzr log --line mahara/$lang.po | head -1";
$remotecommit = `$remotecommitcmd`;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment