pf-tools commit: r898 [ccaillet-guest] - in /branches/next-gen: debian/changelog lib/PFTools/VCS.pm

parmelan-guest at users.alioth.debian.org parmelan-guest at users.alioth.debian.org
Wed Sep 8 08:07:41 UTC 2010


Author: ccaillet-guest
Date: Wed Sep  8 08:07:26 2010
New Revision: 898

URL: http://svn.debian.org/wsvn/pf-tools/?sc=1&rev=898
Log:
use remove_tree with keep_root option instead of remove_tree + make_path

Modified:
    branches/next-gen/debian/changelog
    branches/next-gen/lib/PFTools/VCS.pm

Modified: branches/next-gen/debian/changelog
URL: http://svn.debian.org/wsvn/pf-tools/branches/next-gen/debian/changelog?rev=898&op=diff
==============================================================================
--- branches/next-gen/debian/changelog (original)
+++ branches/next-gen/debian/changelog Wed Sep  8 08:07:26 2010
@@ -1,5 +1,6 @@
 pf-tools (1.0.1~WIP) unstable; urgency=low
 
+  [ Thomas Parmelan ]
   * WORK IN PROGRESS, DO NOT RELEASE!
 
   * debian/changelog: use native versioning, since we maintain the debian/
@@ -8,7 +9,10 @@
   * Use English
   * Don't call mkdir, use File::Path's make_path() instead.
 
- -- Thomas Parmelan <tom+pf-tools at ankh.fr.EU.org>  Tue, 07 Sep 2010 12:47:14 +0200
+  [ Christophe Caillet ]
+  * use remove_tree with keep_root option instead of remove_tree + make_path
+
+ -- Christophe Caillet <tof at sitadelle.com>  Wed, 08 Sep 2010 10:06:41 +0200
 
 pf-tools (1.0-1) unstable; urgency=low
 

Modified: branches/next-gen/lib/PFTools/VCS.pm
URL: http://svn.debian.org/wsvn/pf-tools/branches/next-gen/lib/PFTools/VCS.pm?rev=898&op=diff
==============================================================================
--- branches/next-gen/lib/PFTools/VCS.pm (original)
+++ branches/next-gen/lib/PFTools/VCS.pm Wed Sep  8 08:07:26 2010
@@ -86,8 +86,7 @@
     print $cvs_cmd. "\n" if ( $options->{'debug'} || $options->{'verbose'} );
 
     my $co_dir = $pf_config->{'path'}->{'checkout_dir'};
-    remove_tree($co_dir);
-    make_path($co_dir);
+    remove_tree($co_dir, { keep_root => 1 });
 
     $ret = deferredlogsystem( "cd '" . $co_dir . "';" . $cvs_cmd );
     if ($ret) {
@@ -137,8 +136,7 @@
     print $svn_cmd. "\n" if ( $options->{'debug'} || $options->{'verbose'} );
 
     my $co_dir = $pf_config->{'path'}->{'checkout_dir'};
-    remove_tree($co_dir);
-    make_path($co_dir);
+    remove_tree($co_dir, { keep_root => 1 });
     
     $ret = deferredlogsystem( "cd '" . $co_dir . "';" . $svn_cmd );
     if ($ret) {




More information about the pf-tools-commits mailing list