mirror of
https://github.com/moparisthebest/pacman
synced 2025-01-10 05:18:16 -05:00
added a missing error message in case of lock failure
This commit is contained in:
parent
a55ad29a7e
commit
ddc49a816c
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user