Re: copypage.pl errors
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi,
Le 15/10/2010 13:09, Helge Kreutzmann a écrit :
> On Fri, Oct 15, 2010 at 05:55:56PM +0200, Slavko wrote:
>> please, can someone help me?
>
> I CC'ed the developer of this code, it is relativly new so maybe buggy
> or only tested in Squeeze. Are you using Stable?
For what it worth, using Sid, and being affected by the same problem, I
patched the script this way:
$ cvs diff -u copypage.pl
Index: copypage.pl
===================================================================
RCS file: /cvsroot/webwml/webwml/copypage.pl,v
retrieving revision 1.32
diff -u -r1.32 copypage.pl
- --- copypage.pl 8 Aug 2010 19:45:44 -0000 1.32
+++ copypage.pl 22 Aug 2010 21:38:03 -0000
@@ -360,7 +360,10 @@
unlink $tmpfile;
# Now determine in which situation we are in
- - if ( $cvs_location =~ /Attic\// ) {
+ if ( !$cvs_location ) {
+ # if "Repository revision: No revision control file"
+ return 0;
+ } elsif ( $cvs_location =~ /Attic\// ) {
print STDERR "ERROR: An old translation exists in the
Attic, you should restore it using:\n";
print STDERR "\tcvs update -j $deleted_version -j
$previous_version $dstfile\n";
print STDERR "\t[Edit and update the file]\n";
Cheers
David
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
iEYEARECAAYFAky4khgACgkQ18/WetbTC/oBNgCfZCudLoEFsH0SoryOMf+wkBot
m1oAn355p3p7PX9GloeOvK57dR20uKZS
=Oyks
-----END PGP SIGNATURE-----
Reply to: