Roto-till the recently added -l stuff. Mostly because I don't see any reason why asking for a list of locked packages (and what exactly is wrong with 'pkg info -ak' or 'pkg query -e "%k == 1" "%n-%v"' for that matter?) should preclude locking or unlocking stuff as pkg lock is intended to do. Nor why pkg unlock should be antithetical to getting a list of what is locked.
modified src/lock.c
@@ -47,10 +47,10 @@ static bool yes = false; /* Assume yes answer to questions */
|
|
|
|
|
|
| - | |
| - | |
| - | |
| - | |
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|
@@ -107,48 +107,37 @@ exec_unlock(int argc, char **argv)
|
|
|
|
|
|
| - | |
| + | |
|
|
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| + | |
| + | |
| + | |
|
|
|
|
|
|
|
|
|
|
| + | |
| + | |
|
|
| - | |
| - | |
| + | |
|
|
| - | |
| - | |
|
|
| - | |
|
|
|
|
|
|
|
|
|
|
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|
@@ -163,14 +152,8 @@ exec_lock_unlock(int argc, char **argv, enum action action)
|
|
|
|
|
|
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| + | |
| + | |
|
|
|
|
|
@@ -229,7 +212,8 @@ exec_lock_unlock(int argc, char **argv, enum action action)
|
|
|
|
|
|
| - | |
| + | |
| + | |
|
|
|
|
|
@@ -249,6 +233,10 @@ exec_lock_unlock(int argc, char **argv, enum action action)
|
|
|
|
|
|
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|