[cowdancer] 01/02: cowbuilder.c: Preserve directory when --debug is given

James Clarke jrtc27-guest at moszumanska.debian.org
Wed Apr 6 09:42:17 UTC 2016


This is an automated email from the git hooks/post-receive script.

jrtc27-guest pushed a commit to branch master
in repository cowdancer.

commit 6f836d1e0cd1d2f29d43ce2d645a4a129fa1ac5e
Author: James Clarke <jrtc27 at jrtc27.com>
Date:   Wed Apr 6 10:41:04 2016 +0100

    cowbuilder.c: Preserve directory when --debug is given
    
    Closes: #650592
---
 cowbuilder.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/cowbuilder.c b/cowbuilder.c
index 1d3fb81..d0627b5 100755
--- a/cowbuilder.c
+++ b/cowbuilder.c
@@ -245,7 +245,7 @@ static int cpbuilder_internal_cleancow(const struct pbuilderconfig* pc)
 {
   printf(" -> Cleaning COW directory\n");
 
-  if (0!=rmrf_check_mount(pc->buildplace))
+  if (!pc->debug && 0!=rmrf_check_mount(pc->buildplace))
     return 1;
   return 0;
 }
@@ -412,7 +412,7 @@ out:
   if (ret)
     {
       printf("pbuilder create failed\n");
-      if (0!=rmrf_check_mount(pc->basepath))
+      if (!pc->debug && 0!=rmrf_check_mount(pc->basepath))
 	{
 	  fprintf(stderr, "Could not remove original tree\n");
 	}
@@ -673,7 +673,7 @@ int cpbuilder_update(const struct pbuilderconfig* pc)
 	      fprintf(stderr, "E: could not update with cowdancer, try --no-cowdancer-update option\n");
 	    }
 
-	  if (0!=rmrf_check_mount(pc->buildplace))
+	  if (!pc->debug && 0!=rmrf_check_mount(pc->buildplace))
 	    {
 	      fprintf(stderr, "Could not remove original tree\n");
 	    }

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pbuilder/cowdancer.git



More information about the Pbuilder-maint mailing list