On 10/27/21 10:27, Dominique Leuenberger / DimStar wrote:
On Wed, 2021-10-27 at 10:29 +1030, Simon Lees wrote:
On 10/27/21 03:34, Jan Engelhardt wrote:
On Tuesday 2021-10-26 18:33, Felix Miata wrote:
Is it really necessary to detail locked packages only to ellipsis the vast majority of them?
# zypper -v dup ... The following 1756 items are locked and will not be changed by any action: Available: 4pane-lang AppStream-lang DJPlay-lang DVDStyler-lang Fragments-lang ModemManager-lang MozillaThunderbird NetworkManager NetworkManager-applet NetworkManager-applet-lang NetworkManager-branding-openSUSE NetworkManager-branding-upstream NetworkManager-connection-editor NetworkManager-devel NetworkManager-devel-32bit NetworkManager-fortisslvpn NetworkManager-fortisslvpn-gnome NetworkManager-fortisslvpn-lang NetworkManager-iodine NetworkManager-iodine-gnome NetworkManager-iodine-lang NetworkManager-l2tp NetworkManager-l2tp-gnome apparmor-profiles apparmor-rpm-macros apparmor-utils apparmor-utils-lang appeditor-lang appstream-glib-lang ... and 1642 more items. Installed: ...
1642 more? Really? How about simply
1756 items are locked and will not be changed by any action:
I would agree in the normal case. But then again, you asked for it with -v ;-)
You could also say in a normal case most people only have a handful of packages locked, in my case being able to see the 5-10 locked packages is pretty useful because sometimes I might only lock something for a few days and its nice to get a reminder. I guess someone decided around 100 packages is around where it stops being useful and allocated a buffer big enough to fit around that amount.
You could argue that the verbose option should actually list all of them at the same time you could also make an argument that the number of people with over 100 packages locked is small and so maybe its not worth the complexity of adding further special handling.
Not unlikely to have quickly > 100 packages locked. e.g. my lock list:
zypper ll
# | Name | Type | Repository | Comment ---+-----------------------+---------+------------+-------- 1 | *-32bit | package | (any) | 2 | *-lang | package | (any) |
=> these two lines add up to A LOT :)
Cheers, Dominique
Yeah, I have a couple of locked packages, and they've been locked for a long time, I don't want to be reminded of them every time (and since I am using the default regex matching, locking e.g. foo, will show me foo, foo-bar, foo-baz, foo-notbar and every single foo in the repos :)). Maybe a bug report is needed here so that it's not forgotten in the depths of a mailing list? -- Ahmad Samir