added a missing error message in case of lock failure

This commit is contained in:
Aurelien Foret 2006-01-27 19:02:56 +00:00
parent a55ad29a7e
commit ddc49a816c
1 changed files with 4 additions and 0 deletions

View File

@ -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);
}