[Po4a-commits] po4a Build.PL,1.21,1.22

Jordi Vilalta po4a-devel@lists.alioth.debian.org
Sun, 06 Mar 2005 11:13:08 +0000


Update of /cvsroot/po4a/po4a
In directory haydn:/tmp/cvs-serv23856

Modified Files:
	Build.PL 
Log Message:
Delete the distfile if it already exists to avoid the confirmation


Index: Build.PL
===================================================================
RCS file: /cvsroot/po4a/po4a/Build.PL,v
retrieving revision 1.21
retrieving revision 1.22
diff -u -d -r1.21 -r1.22
--- Build.PL	6 Mar 2005 09:26:22 -0000	1.21
+++ Build.PL	6 Mar 2005 11:13:05 -0000	1.22
@@ -219,6 +219,11 @@
 
 	    my $dist_dir = $self->dist_dir;
 
+	    if ( -e "$dist_dir.tar.gz") {
+		# Delete the distfile if it already exists
+		system ("rm $dist_dir.tar.gz") && die;
+	    }
+
 	    $self->make_tarball($dist_dir);
 	    $self->delete_filetree($dist_dir);
 	}