[Bug 395480] New: zypper: add option -t package to default command lu
https://bugzilla.novell.com/show_bug.cgi?id=395480 Summary: zypper: add option -t package to default command lu Product: openSUSE 11.0 Version: Factory Platform: x86 OS/Version: openSUSE 11.0 Status: NEW Severity: Enhancement Priority: P5 - None Component: libzypp AssignedTo: zypp-maintainers@forge.provo.novell.com ReportedBy: casualprogrammer@yahoo.com QAContact: qa@suse.de Found By: Beta-Customer Since most uninitiated people like me expect zypper to plainly list all updates available and get more or less confused by the fact that default setting is -t patch, I suggest that -t package gets added to default. zypper lu would then equal zypper lu -t patch -t package which runs nicely: # zypper lu -t package -t patch Downloading repository 'openSUSE-Updates-11.0' metadata [done] Building repository 'openSUSE-Updates-11.0' cache [done] Downloading repository 'openSUSE-Factory' metadata [done] Building repository 'openSUSE-Factory' cache [done] Downloading repository 'openSUSE-Factory-nonOSS' metadata [done] Building repository 'openSUSE-Factory-nonOSS' cache [done] Downloading repository 'Packman-openSUSE-11.0' metadata [done] Building repository 'Packman-openSUSE-11.0' cache [done] Downloading repository 'openSUSE-Factory-Debug' metadata [done] Building repository 'openSUSE-Factory-Debug' cache [done] Reading installed packages... Patches No updates found. Package updates No updates found. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=395480 User jkupec@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=395480#c1 Ján Kupec <jkupec@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |visnov@novell.com, jkupec@novell.com --- Comment #1 from Ján Kupec <jkupec@novell.com> 2008-05-29 09:53:49 MDT --- Most uninitiated people won't use factory distro, they will use stable distro and they will only need to check for patches from the update repository. Nothing else. Or? This package vs patch default is a never ending story. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=395480 User casualprogrammer@yahoo.com added comment https://bugzilla.novell.com/show_bug.cgi?id=395480#c2 --- Comment #2 from Casual J. Programmer <casualprogrammer@yahoo.com> 2008-05-29 10:03:09 MDT --- "they will only need to check for patches from the update repository" so it wouldn't hurt them if -t package was added to default, they get to see their patches, the others get to see patches _and_ packages. Not entering the "package vs patch" story, but rather "package as well as patch" Should be a real non issue and fixed in a minute.. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=395480 User mls@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=395480#c3 --- Comment #3 from Michael Schröder <mls@novell.com> 2008-05-29 10:10:47 MDT --- Regarding #1: You're statement isn't true anymore if you add repositories from the build service. I'd much prefer: zypper lu - list updates zypper up - install updates zypper pl - list update patches zypper pu - install update patches or something like that. Regarding #2: I don't think it makes sense to mix patches and packages, it just leads to confusion. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=395480 Duncan Mac-Vicar <dmacvicar@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |dmacvicar@novell.com Priority|P5 - None |P4 - Low -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=395480 User jkupec@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=395480#c4 Ján Kupec <jkupec@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|zypp-maintainers@forge.provo.novell.com |jkupec@novell.com Status|NEW |ASSIGNED Priority|P4 - Low |P3 - Medium Summary|zypper: add option -t package to default command|zypper: make update management less surprising |lu |(package vs. patch updates) --- Comment #4 from Ján Kupec <jkupec@novell.com> 2008-07-29 02:24:06 MDT --- changing summary. The update management will be changed according to http://lists.opensuse.org/opensuse-softwaremgmt/2008-07/msg00005.html and http://lists.opensuse.org/opensuse-softwaremgmt/2008-07/msg00004.html -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=395480 User jkupec@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=395480#c5 Ján Kupec <jkupec@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |andi-nbz@firstfloor.org --- Comment #5 from Ján Kupec <jkupec@novell.com> 2008-07-29 02:26:46 MDT --- *** Bug 412784 has been marked as a duplicate of this bug. *** https://bugzilla.novell.com/show_bug.cgi?id=412784 -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=395480 User jkupec@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=395480#c6 Ján Kupec <jkupec@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |robert_gartler@gmx.net --- Comment #6 from Ján Kupec <jkupec@novell.com> 2008-07-29 03:13:40 MDT --- *** Bug 404430 has been marked as a duplicate of this bug. *** https://bugzilla.novell.com/show_bug.cgi?id=404430 -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=395480 User jkupec@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=395480#c7 Ján Kupec <jkupec@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jreidinger@novell.com --- Comment #7 from Ján Kupec <jkupec@novell.com> 2008-07-29 04:34:48 MDT --- *** Bug 385990 has been marked as a duplicate of this bug. *** https://bugzilla.novell.com/show_bug.cgi?id=385990 -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=395480 User froh@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=395480#c8 Susanne Oberhauser <froh@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |froh@novell.com --- Comment #8 from Susanne Oberhauser <froh@novell.com> 2008-07-29 09:23:53 MDT --- Can I possibly register the update type with the repository? or in /etc/zypp/repos.d/$REPO ? and then a "zypper lu" will check -t patch or -t package automatically? -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=395480 User jkupec@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=395480#c9 --- Comment #9 from Ján Kupec <jkupec@novell.com> 2008-07-29 10:44:30 MDT --- I'm not sure i understand your questions. Do you mean, whether you can add an update (rpmmd) repository? That would be "yes". You can do it via 'zypper addrepo' (and soon also via NU service, 'zypper addservice'), but yes, it's almost the same as adding a .repo file into /etc/zypp/repos.d. Now, the change (according to what people favor in the threads mentioned in c#4) will be as follows: - patch and package updates will be separated into two commands (instead of having 'up' for both packages and patches; the same goes for 'lu' of course). Let's say the commands will be named 'list-updates (lu)', 'list-patch-updates (lpu)', 'update (up)', and 'apply-patches (ap) (i'm not sure about the exact names yet). - 'lu'/'lpu' will be changed to list exactly what 'up'/'ap' would list in the install summary. Special option will be added to lu/lpu to list 'raw' list of installed packages for which newer versions exist in repos without considering not installable packages due to dependency problems (as it currently does). This is roughly how it will work. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=395480 User froh@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=395480#c10 --- Comment #10 from Susanne Oberhauser <froh@novell.com> 2008-07-29 11:07:18 MDT --- I'm suggesting to tell zypp* that in repo xyz, it shall consider new packages as updates, while in repo abc it shall look for patches. To me running different commands for different repos is very confusing. The background for this is that in many cases plain package updates in the repo are just sufficient, for example if there is a new fate package or such. This was not sufficient for full maintenance, that's why we've created patches ages ago and others followed with their flavors of metapackages. So could we allow to specify "In this little repo, any package update is an update" for the repo, permanently, in the config? So a zypper lu run will know from the config: aha, in this repo new packages are updates, in that repo patches are updates, in this repo anything new is an update? also see fate#305111 "updates from openSUSE buildservice repos" -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=395480 User jkupec@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=395480#c11 --- Comment #11 from Ján Kupec <jkupec@novell.com> 2008-07-30 01:54:43 MDT --- (In reply to comment #10 from Susanne Oberhauser)
To me running different commands for different repos is very confusing.
It's not about running different commands for different repos, it's about doing either a package-wise update or a patch-wise update on _all_ repos. Does this make better sense to you? However, your idea is also good (some pros and cons come to my mind), so i'd suggest to send it to the discussion on the ML (the patch vs. package updates thread), so that we don't discuss this in two places. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=395480 User jkupec@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=395480#c12 --- Comment #12 from Ján Kupec <jkupec@novell.com> 2008-07-30 01:57:21 MDT --- (In reply to comment #11 from Ján Kupec)
either a package-wise update or a patch-wise update on _all_ repos. eh.. i mean 'on _any_ repos'. All by default.
-- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=395480 User froh@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=395480#c13 --- Comment #13 from Susanne Oberhauser <froh@novell.com> 2008-09-22 03:17:30 MDT --- (In reply to comment #11 from Jan Kupec)
However, your idea is also good (some pros and cons come to my mind), so i'd suggest to send it to the discussion on the ML (the patch vs. package updates thread), so that we don't discuss this in two places. for reference, this is the thread: http://lists.opensuse.org/opensuse-softwaremgmt/2008-07/msg00005.html
it doesn't come to a conclusion either, though. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=395480 User jkupec@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=395480#c14 Ján Kupec <jkupec@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |kkaempf@novell.com, ma@novell.com, | |matz@novell.com --- Comment #14 from Ján Kupec <jkupec@novell.com> 2008-09-28 10:45:12 MDT --- And .../msg00004.html. Unfortunately there was not much discussion. I just counted votes. There are four votes (mls, matz, dmacvicar, plus my own) in that thread that want to see: zypper update, list-updates - package update zypper patch, list-patches - patch update, or "list/apply available needed patches" There is one vote by Klaus (in the other (correct) thread), who argues there should not be two different commands for this, but rather a zypper config (we don't have this yet) option for the existing 'up' and 'lu' commands. Plus your (Susanne) suggestion to be able to mark individual repos for patch updates or package updates. So i'd say we have a conclusion. All approaches have their pros and cons, but i'd say the winner is 'the least surprising' for users, which is what this is all about. So i'll do the following: * -t option default will be 'package' for 'up' and 'lu' * two new commands will be added (patch, list-patches) * the 'lu' and 'up' commands will be synced to show the same * --raw (or something like that) option will be added to 'lu' to show all packages with newer available version regardless whether they are installable or not. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=395480 User froh@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=395480#c15 --- Comment #15 from Susanne Oberhauser <froh@novell.com> 2008-09-29 03:36:47 MDT --- Hi Jan, thx for looking into this. (In reply to comment #14 from Ján Kupec)
So i'll do the following: * -t option default will be 'package' for 'up' and 'lu'
does this mean,t hat when in the past, packages were ignore with 'lu' and 'up', then in the future patches will be ignored? to me the least surprise had been to offer any types of updates, regardless wether they are patches or packages, so the default would be "--type any", and then you can force-focus on just packages or just patches using the --type argument explicitely. For that, the type argument could be allowed to be given several times, accumulating them all, or take a comma-separated list.
* two new commands will be added (patch, list-patches) * the 'lu' and 'up' commands will be synced to show the same * --raw (or something like that) option will be added to 'lu' to show all packages with newer available version regardless whether they are installable or not.
plus I still believe it's a very usefull thing to be able to set the defaults on a per repository basis, in the per-repo config file. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=395480 User jkupec@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=395480#c16 --- Comment #16 from Ján Kupec <jkupec@novell.com> 2008-09-29 05:45:46 MDT --- (In reply to comment #15 from Susanne Oberhauser)
(In reply to comment #14 from Ján Kupec)
So i'll do the following: * -t option default will be 'package' for 'up' and 'lu'
does this mean,t hat when in the past, packages were ignore with 'lu' and 'up', then in the future patches will be ignored?
exactly
to me the least surprise had been to offer any types of updates, regardless wether they are patches or packages, so the default would be "--type any", and then you can force-focus on just packages or just patches using the --type argument explicitely.
Might be. The reason why i did not consider this is that users always expected 'package updates' from 'update' (there are tens of bug reports). Plus YaST also does not mix the two update types. I'm not sure how it would look like if we mixed this. But we might still can change this, if more people will prefer your suggestion.
For that, the type argument could be allowed to be given several times, accumulating them all, or take a comma-separated list.
It is, see the initial comment.
* two new commands will be added (patch, list-patches) * the 'lu' and 'up' commands will be synced to show the same * --raw (or something like that) option will be added to 'lu' to show all packages with newer available version regardless whether they are installable or not.
plus I still believe it's a very usefull thing to be able to set the defaults on a per repository basis, in the per-repo config file.
I would like to discuss this, but why not do it on opensuse-softwaremgmt ML? Bugzilla is not a good discussion forum :O) -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=395480 User jkupec@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=395480#c17 Ján Kupec <jkupec@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status Whiteboard| |in-svn --- Comment #17 from Ján Kupec <jkupec@novell.com> 2008-09-29 05:51:22 MDT --- JFYI, comment #14 is done in svn, to be in zypper 0.12.7. I'm leaving this bug open in case somebody wants to react to Susanne's suggestions. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=395480 User jkupec@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=395480#c18 Ján Kupec <jkupec@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |michael.monreal@gmail.com --- Comment #18 from Ján Kupec <jkupec@novell.com> 2008-09-30 11:57:49 MDT --- *** Bug 418496 has been marked as a duplicate of this bug. *** https://bugzilla.novell.com/show_bug.cgi?id=418496 -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=395480 User jkupec@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=395480#c19 Ján Kupec <jkupec@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution| |FIXED Status Whiteboard|in-svn | --- Comment #19 from Ján Kupec <jkupec@novell.com> 2008-10-08 00:30:57 MDT --- submitted -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com