[zypp-devel] Re: [zypp-commit] r11552 - in /trunk/zypper/src: Zypper.cc install.cc repos.cc repos.h
On Thu, Oct 30, 2008 at 05:27:03PM -0000, jkupec@svn.opensuse.org wrote:
- --from added to install command to mark packages for installation (by glob/name) from specified repos
So '--from' is like '--repo' with the difference that it does what the user expects? (Btw, zypper's options are so messed up. I just saw that 'zypper sa' also has a completly different '--repo' option.) Thanks, Michael. -- Michael Schroeder mls@suse.de SUSE LINUX Products GmbH, GF Markus Rex, HRB 16746 AG Nuernberg main(_){while(_=~getchar())putchar(~_-1/(~(_|32)/13*2-11)*13);} -- To unsubscribe, e-mail: zypp-devel+unsubscribe@opensuse.org For additional commands, e-mail: zypp-devel+help@opensuse.org
Michael Schroeder wrote:
On Thu, Oct 30, 2008 at 05:27:03PM -0000, jkupec@svn.opensuse.org wrote:
- --from added to install command to mark packages for installation (by glob/name) from specified repos
So '--from' is like '--repo' with the difference that it does what the user expects?
Both options make sense, don't you think? But i agree --from is something that users will want much more often. (But expect bugs (i noticed one problem in PoolQuery when testing --from) and bad performance with --from, i will try to optimize it a bit next week).
(Btw, zypper's options are so messed up. I just saw that 'zypper sa' also has a completly different '--repo' option.)
'sa' is not a zypper command, it's rug's. You can get a list of all commands by just typing 'zypper'. But yes, zypper ar (addrepo) has --repo, and it serves for specifying .repo file for adding. Since the purpose of addrepo command is so much different from install or other which have --repo option, i believe there is not much room for confusion. Note that zypper makes difference between global and command-specific options. How would you like it to be, anyway? It's quite counterproductive to rant and not suggest a thing. -- cheers, jano Ján Kupec YaST team --------------------------------------------------------(PGP)--- Key ID: 637EE901 Fingerprint: 93B9 C79B 2D20 51C3 800B E09B 8048 46A6 637E E901 ---------------------------------------------------------------- -- To unsubscribe, e-mail: zypp-devel+unsubscribe@opensuse.org For additional commands, e-mail: zypp-devel+help@opensuse.org
On Fri, Oct 31, 2008 at 12:13:57PM +0100, jkupec@suse.cz wrote:
How would you like it to be, anyway? It's quite counterproductive to rant and not suggest a thing.
Oh, that's easy. Here are a couple of suggestions: - change --repo so that it works like --from (who needs the --repo behaviour?) - do not use different options for different commands: -D : always --dry-run, not suddenly "--no-build-deps" or "--download-only" or "--reposd-dir" --repo : always filter this repo -v : always "detail" mode, not "-s" for search and "-d" for "lr" -R : always "--no-force-resolution", not "--no-refresh" in one command -t : always "--type", not sometimes "--terse" or "--remote" and so on. - change the defaults a bit, if everyone uses "se -s", "-s" might as well be the default. Same for "lr -d". Cheers, Michael. -- Michael Schroeder mls@suse.de SUSE LINUX Products GmbH, GF Markus Rex, HRB 16746 AG Nuernberg main(_){while(_=~getchar())putchar(~_-1/(~(_|32)/13*2-11)*13);} -- To unsubscribe, e-mail: zypp-devel+unsubscribe@opensuse.org For additional commands, e-mail: zypp-devel+help@opensuse.org
participants (2)
-
jkupec@suse.cz
-
Michael Schroeder