We don't check the version so we shouldn't confuse the user by showing
it in the warning.

Signed-off-by: Florian Pritz <[email protected]>
---
 lib/libalpm/deps.c |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diff --git a/lib/libalpm/deps.c b/lib/libalpm/deps.c
index 2124956..2155e2c 100644
--- a/lib/libalpm/deps.c
+++ b/lib/libalpm/deps.c
@@ -784,7 +784,11 @@ char SYMEXPORT *alpm_dep_compute_string(const pmdepend_t 
*dep)
                        break;
        }
 
-       if(dep->version) {
+       if(handle->trans->flags & PM_TRANS_FLAG_NODEPVERSION) {
+               opr = "";
+       }
+
+       if(dep->version && !(handle->trans->flags & 
PM_TRANS_FLAG_NODEPVERSION)) {
                ver = dep->version;
        } else {
                ver = "";
-- 
1.7.3.1

Reply via email to