diff options
author | Andrew Gregory <andrew.gregory.8@gmail.com> | 2017-07-09 02:33:18 +0200 |
---|---|---|
committer | Allan McRae <allan@archlinux.org> | 2017-07-11 03:36:16 +0200 |
commit | 2b1b7b70753eb56bee08cd270efc7cfa342bc0ec (patch) | |
tree | eb3d137c911e9ece623fdc581e57fed7c9990cb8 /src | |
parent | fa8419a0b569378674fb87e69f249d9cfe724596 (diff) | |
download | pacman-2b1b7b70753eb56bee08cd270efc7cfa342bc0ec.tar.gz pacman-2b1b7b70753eb56bee08cd270efc7cfa342bc0ec.tar.xz |
clarify broken dependency error messages
Signed-off-by: Andrew Gregory <andrew.gregory.8@gmail.com>
Signed-off-by: Allan McRae <allan@archlinux.org>
Diffstat (limited to 'src')
-rw-r--r-- | src/pacman/sync.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/pacman/sync.c b/src/pacman/sync.c index 680d7b3e..67bec8fd 100644 --- a/src/pacman/sync.c +++ b/src/pacman/sync.c @@ -717,15 +717,16 @@ static void print_broken_dep(alpm_depmissing_t *miss) alpm_pkg_t *pkg; if(miss->causingpkg == NULL) { /* package being installed/upgraded has unresolved dependency */ - colon_printf(_("%s: requires %s\n"), miss->target, depstring); + colon_printf(_("unable to satisfy dependency '%s' required by %s\n"), + depstring, miss->target); } else if((pkg = alpm_pkg_find(trans_add, miss->causingpkg))) { /* upgrading a package breaks a local dependency */ - colon_printf(_("%s: installing %s (%s) breaks dependency '%s'\n"), - miss->target, miss->causingpkg, alpm_pkg_get_version(pkg), depstring); + colon_printf(_("installing %s (%s) breaks dependency '%s' required by %s\n"), + miss->causingpkg, alpm_pkg_get_version(pkg), depstring, miss->target); } else { /* removing a package breaks a local dependency */ - colon_printf(_("%s: removing %s breaks dependency '%s'\n"), - miss->target, miss->causingpkg, depstring); + colon_printf(_("removing %s breaks dependency '%s' required by %s\n"), + miss->causingpkg, depstring, miss->target); } free(depstring); } |