openSUSE / zypper

World's most powerful command line package manager
http://en.opensuse.org/Portal:Zypper
Other
405 stars 110 forks source link

[Feature request] Add comment to package lock #388

Closed cbcoutinho closed 3 years ago

cbcoutinho commented 3 years ago

Hi,

I have disabled a third-party package as it unnecessarily conflicts with an openSUSE package by using zypper addlock. To make this easier to understand for others on the system, I would like to add a comment to the lock, similar to how repositories can have aliases.

I was hoping for something like this:

$ sudo zypper addlock -r bad-repo --comment "Conflicts with packageA in good-repo" packageB
mlandres commented 3 years ago

A good idea.

mlandres commented 3 years ago

zypper 1.14.48 will support addlock -m, --comment to add a comment when specifying a lock. Thanks to @coolgw who implemented it.