Linux Archive

Linux Archive (http://www.linux-archive.org/)
-   ArchLinux Pacman Development (http://www.linux-archive.org/archlinux-pacman-development/)
-   -   Add new -Sq / --needed option. (http://www.linux-archive.org/archlinux-pacman-development/4266-add-new-sq-needed-option.html)

Xavier 11-24-2007 06:38 PM

Add new -Sq / --needed option.
 
On Sat, Nov 24, 2007 at 02:55:24PM +0100, Nagy Gabor wrote:
> Wow, you are really active now. Great, I like this feature.
>
> Now I will be an asshole (please don't kill me;-):
> 1. Personally I would have kept the current behaviour (ask for user, he may
> answer mixed answers), and add an option for both "answer-yes" and "answer-no".
> Because usually when I get this question (copy-paste from wiki ;-), my reaction
> is ctrl-c (<=> I want to do answer-no)...
> 2. This will be a contra for my -Ru patch too:
> This should be handled in front-end's callback.c imho (to keep libalpm as
> flexible as possible), and that should answer the question automatically. This
> is similar to ask, but new command-line options for each question-type is much
> clearer imho.
> 3. I go further: Even remove_cascade and remove_unneeded should be done in
> front-end. This could be an "interactive" remove-dependency-error resolving:
> "Removal of foo would break the bar dependency of baz."
> "Do you want to keep foo?" [REMOVE_UNNEDED answers yes, default answer no], if
> the answer was no:
> "Do you want to also remove baz?" [REMOVE_CASCADE answers yes, default: no]...
> if the answer was no: depcheck error
> What's more, this can be handy in case of resolvedeps, this would help pacman
> (== user) choose a proper satisfier.
> "To-be-installed foo has an unsatisfied dependency bar. Baz satisfies bar. Do
> you want to install baz?" [default answer: yes; optional: no <- no dependency
> resolve, BUT exit with error; optional: prompt to user <- user can find his
> favourite dependency]....
>
> Well, this mail may be a bit chaotic (random new ideas in my mind), sry.
>

Handling this in callback.c might be a good idea, I don't know.
If you believe it is, please provide a patch, it'll be easier to judge it :)

_______________________________________________
pacman-dev mailing list
pacman-dev@archlinux.org
http://archlinux.org/mailman/listinfo/pacman-dev

"Aaron Griffin" 11-26-2007 05:30 PM

Add new -Sq / --needed option.
 
Hmm, Dan merged the 'quiet' patch already, which means -q is now taken 8)

Maybe we only want a long option here?

_______________________________________________
pacman-dev mailing list
pacman-dev@archlinux.org
http://archlinux.org/mailman/listinfo/pacman-dev

Xavier 11-26-2007 05:33 PM

Add new -Sq / --needed option.
 
On Mon, Nov 26, 2007 at 12:30:18PM -0600, Aaron Griffin wrote:
> Hmm, Dan merged the 'quiet' patch already, which means -q is now taken 8)
>
> Maybe we only want a long option here?
>

Yes, that's what I chose when rebasing my patch, so it's already done :)
I felt it was not necessary to resubmit the patch on the ML since it's a
minor change. I just updated it in my git repo, and it's available there.

_______________________________________________
pacman-dev mailing list
pacman-dev@archlinux.org
http://archlinux.org/mailman/listinfo/pacman-dev

"Aaron Griffin" 11-26-2007 06:23 PM

Add new -Sq / --needed option.
 
On Nov 26, 2007 12:33 PM, Xavier <shiningxc@gmail.com> wrote:
> On Mon, Nov 26, 2007 at 12:30:18PM -0600, Aaron Griffin wrote:
> > Hmm, Dan merged the 'quiet' patch already, which means -q is now taken 8)
> >
> > Maybe we only want a long option here?
> >
>
> Yes, that's what I chose when rebasing my patch, so it's already done :)
> I felt it was not necessary to resubmit the patch on the ML since it's a
> minor change. I just updated it in my git repo, and it's available there.

Yeah, I didn't check yet - not at home, so no gitk 8)

_______________________________________________
pacman-dev mailing list
pacman-dev@archlinux.org
http://archlinux.org/mailman/listinfo/pacman-dev


All times are GMT. The time now is 01:59 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.