[pacman-dev] -Sc and -Scc default actions

Roman Kyrylych roman.kyrylych at gmail.com
Sun Jun 3 15:36:38 EDT 2007


2007/4/23, Dan McGee <dpmcgee at gmail.com>:
> On 3/28/07, Roman Kyrylych <roman.kyrylych at gmail.com> wrote:
> > Hi!
> >
> > I've upgraded to pacman3 and did this:
> > [root at server ~]# pacman -Sc
> > Do you want to remove old packages from cache? [Y/n]
> > removing old packages from cache... done.
> > [root at server ~]# pacman -Scc
> > Do you want to remove all packages from cache? [Y/n] n
> >
> > IMO -Scc default choice should be N, because it's easy to do -Scc
> > instead of -Sc and hit Enter as usual.
>
> Cleaning the email inbox. Submit a patch (against GIT) if you want
> this, and I'd like to see what a few other people think about it.
>


From 3775b9031181d72ab4c63b5cd166f6af3bf714c4 Mon Sep 17 00:00:00 2001
From: Roman Kyrylych <roman at archlinux.org>
Date: Sun, 3 Jun 2007 21:12:26 +0300
Subject: [PATCH] changed default -Scc answer to N

Signed-off-by: Roman Kyrylych <roman at archlinux.org>
---
 src/pacman/sync.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/pacman/sync.c b/src/pacman/sync.c
index 7d7de52..9102a9a 100644
--- a/src/pacman/sync.c
+++ b/src/pacman/sync.c
@@ -163,7 +163,7 @@ static int sync_cleancache(int level)
 		FREELIST(clean);
 	} else {
 		/* full cleanup */
-		if(!yesno(_("Do you want to remove all packages from cache? [Y/n] ")))
+		if(yesno(_("Do you want to remove all packages from cache? [y/N] ")))
 			return(0);
 		printf(_("removing all packages from cache... "));

-- 
1.5.2

-- 
Roman Kyrylych (Роман Кирилич)


More information about the pacman-dev mailing list