summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/pacman/deptest.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/pacman/deptest.c b/src/pacman/deptest.c
index ebd18f3b..85a40ea1 100644
--- a/src/pacman/deptest.c
+++ b/src/pacman/deptest.c
@@ -58,6 +58,10 @@ int pacman_deptest(list_t *targets)
* deps checkings from alpm_trans_prepare() */
if(alpm_trans_init(PM_TRANS_TYPE_ADD, 0, NULL, NULL) == -1) {
ERR(NL, "%s", alpm_strerror(pm_errno));
+ if(pm_errno == PM_ERR_HANDLE_LOCK) {
+ MSG(NL, " if you're sure a package manager is not already running,\n" \
+ " you can remove %s\n", PM_LOCK);
+ }
return(1);
}