Allow pkg lock -l or pkg unlock -l to list locks with out actually (un)locking anything.
modified src/lock.c
@@ -48,10 +48,8 @@ static bool yes = false; /* Assume yes answer to questions */
|
|
|
|
|
|
| - | |
| - | |
| - | |
| - | |
| + | |
| + | |
|
|
|
|
|
@@ -191,7 +189,9 @@ exec_lock_unlock(int argc, char **argv, enum action action)
|
|
|
|
|
|
| - | |
| + | |
| + | |
| + | |
|
|
|
|
|
@@ -228,21 +228,23 @@ exec_lock_unlock(int argc, char **argv, enum action action)
|
|
|
|
|
|
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| + | |
| + | |
|
|
|
|
|
|
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|