From uqs@spoerlein.net  Mon Aug 10 10:10:58 2009
Return-Path: <uqs@spoerlein.net>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 1FFCC106566B;
	Mon, 10 Aug 2009 10:10:58 +0000 (UTC)
	(envelope-from uqs@spoerlein.net)
Received: from acme.spoerlein.net (cl-43.dus-01.de.sixxs.net [IPv6:2a01:198:200:2a::2])
	by mx1.freebsd.org (Postfix) with ESMTP id 9106B8FC1F;
	Mon, 10 Aug 2009 10:10:57 +0000 (UTC)
Received: from elmar.spoerlein.net (e180134010.adsl.alicedsl.de [85.180.134.10])
	by acme.spoerlein.net (8.14.3/8.14.3) with ESMTP id n7AAAt13007689
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK);
	Mon, 10 Aug 2009 12:10:56 +0200 (CEST)
	(envelope-from uqs@spoerlein.net)
Received: from elmar.spoerlein.net (localhost [127.0.0.1])
	by elmar.spoerlein.net (8.14.3/8.14.3) with ESMTP id n7AAAtBa075536
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO);
	Mon, 10 Aug 2009 12:10:55 +0200 (CEST)
	(envelope-from uqs@elmar.spoerlein.net)
Received: (from uqs@localhost)
	by elmar.spoerlein.net (8.14.3/8.14.3/Submit) id n7AAAt20075535;
	Mon, 10 Aug 2009 12:10:55 +0200 (CEST)
	(envelope-from uqs)
Message-Id: <200908101010.n7AAAt20075535@elmar.spoerlein.net>
Date: Mon, 10 Aug 2009 12:10:55 +0200 (CEST)
From: Ulrich Spoerlein <uspoerlein@gmail.com>
To: FreeBSD-gnats-submit@freebsd.org
Cc: stefan@freebsd.org
Subject: [PATCH] ports-mgmt/pkg_cutleaves: default to continue with leaf packages
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         137626
>Category:       ports
>Synopsis:       [PATCH] ports-mgmt/pkg_cutleaves: default to continue with leaf packages
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    stefan
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Mon Aug 10 10:20:01 UTC 2009
>Closed-Date:    Wed Aug 12 17:52:02 UTC 2009
>Last-Modified:  Wed Aug 12 18:00:16 UTC 2009
>Originator:     Ulrich Spoerlein
>Release:        FreeBSD 8.0-BETA2 amd64
>Organization:
>Environment:
>Description:
- Change the default behaviour to continue on newly found leaf packages

The reasoning is that it is dead easy to abort (hit CTRL-C) but impossible to
resume if you hit return too fast. Therefore resuming the de-installation
process shall be the default.

Port maintainer (stefan@FreeBSD.org) is cc'd.
Generated with FreeBSD Port Tools 0.77
>How-To-Repeat:
>Fix:

--- pkg_cutleaves-20090810.patch begins here ---
Index: Makefile
===================================================================
RCS file: /tank/ncvs/ports/ports-mgmt/pkg_cutleaves/Makefile,v
retrieving revision 1.15
diff -u -p -u -r1.15 Makefile
--- Makefile	25 Mar 2008 18:55:29 -0000	1.15
+++ Makefile	10 Aug 2009 10:07:59 -0000
@@ -6,7 +6,7 @@
 #
 
 PORTNAME=	pkg_cutleaves
-PORTVERSION=	20080320
+PORTVERSION=	20090810
 CATEGORIES=	ports-mgmt
 MASTER_SITES=	# none
 DISTFILES=	# none
Index: files/pkg_cutleaves
===================================================================
RCS file: /tank/ncvs/ports/ports-mgmt/pkg_cutleaves/files/pkg_cutleaves,v
retrieving revision 1.2
diff -u -p -u -r1.2 pkg_cutleaves
--- files/pkg_cutleaves	25 Mar 2008 18:55:30 -0000	1.2
+++ files/pkg_cutleaves	10 Aug 2009 10:07:59 -0000
@@ -121,7 +121,7 @@ else {
     $again = 'n';
   }
   # Loop while the user wants to
-  ROUND: while($again eq 'y') {
+  ROUND: while($again ne 'n') {
     # Always start with an empty list of leaves to cut
     my %leavestocut;
     # Initialize counter for progress status
@@ -259,7 +259,7 @@ else {
       goto AUTOPRUNE;
     } # AUTOPRUNE
 
-    print "Go on with new leaf packages ((y)es/[no])? ";
+    print "Go on with new leaf packages ([yes]/no)? ";
     # Get first character of input, without leading whitespace
     ($again) = (lc(<STDIN>) =~ /(\S)/o);
     print "\n";
--- pkg_cutleaves-20090810.patch ends here ---

>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->stefan 
Responsible-Changed-By: edwin 
Responsible-Changed-When: Mon Aug 10 10:20:14 UTC 2009 
Responsible-Changed-Why:  
Over to maintainer (via the GNATS Auto Assign Tool) 

http://www.freebsd.org/cgi/query-pr.cgi?pr=137626 
State-Changed-From-To: open->closed 
State-Changed-By: stefan 
State-Changed-When: Wed Aug 12 17:51:28 UTC 2009 
State-Changed-Why:  
I agree, this sounds reasonable. Committed, thanks for the patch! 

http://www.freebsd.org/cgi/query-pr.cgi?pr=137626 

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: ports/137626: commit references a PR
Date: Wed, 12 Aug 2009 17:50:58 +0000 (UTC)

 stefan      2009-08-12 17:50:48 UTC
 
   FreeBSD ports repository
 
   Modified files:
     ports-mgmt/pkg_cutleaves Makefile 
     ports-mgmt/pkg_cutleaves/files pkg_cutleaves 
   Log:
   Change the default behaviour to continue on newly found leaf packages.
   
   PR:             137626
   Submitted by:   Ulrich Spoerlein <uspoerlein@gmail.com>
   
   Revision  Changes    Path
   1.16      +1 -1      ports/ports-mgmt/pkg_cutleaves/Makefile
   1.3       +2 -2      ports/ports-mgmt/pkg_cutleaves/files/pkg_cutleaves
 _______________________________________________
 cvs-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/cvs-all
 To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
 
>Unformatted:
