From ddc49a816c71f31683411c0d2c21446fa00517bf Mon Sep 17 00:00:00 2001 From: Aurelien Foret Date: Fri, 27 Jan 2006 19:02:56 +0000 Subject: added a missing error message in case of lock failure --- src/pacman/deptest.c | 4 ++++ 1 file changed, 4 insertions(+) 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); } -- cgit v1.2.3-70-g09d2