summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAurelien Foret <aurelien@archlinux.org>2006-01-27 20:02:56 +0100
committerAurelien Foret <aurelien@archlinux.org>2006-01-27 20:02:56 +0100
commitddc49a816c71f31683411c0d2c21446fa00517bf (patch)
treeb53e65b63a6d7022739c5be0295de0522f72c05b
parenta55ad29a7ebbf07bf29af9b09faed7b49562c05f (diff)
downloadpacman-ddc49a816c71f31683411c0d2c21446fa00517bf.tar.gz
pacman-ddc49a816c71f31683411c0d2c21446fa00517bf.tar.xz
added a missing error message in case of lock failure
-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);
}