Skip to content

Commit

Permalink
pkg-add: Tell which version was needed when a dependency is not met
Browse files Browse the repository at this point in the history
  • Loading branch information
bdrewery committed Jan 2, 2014
1 parent 76ae4b0 commit 7457e4f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions libpkg/pkg_add.c
Original file line number Diff line number Diff line change
Expand Up @@ -270,8 +270,10 @@ pkg_add(struct pkgdb *db, const char *path, unsigned flags, struct pkg_manifest_
goto cleanup;
}
} else {
pkg_emit_error("Missing dependency matching '%s'",
pkg_dep_get(dep, PKG_DEP_ORIGIN));
pkg_emit_error("Missing dependency matching "
"Origin: '%s' Version: '%s'",
pkg_dep_get(dep, PKG_DEP_ORIGIN),
pkg_dep_get(dep, PKG_DEP_VERSION));
retcode = EPKG_FATAL;
goto cleanup;
}
Expand Down

0 comments on commit 7457e4f

Please sign in to comment.