[pacman-dev] [PATCH] remove version from dependency warning if -dd is used

Florian Pritz bluewind at xssn.at
Fri Oct 1 11:49:12 EDT 2010


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

Signed-off-by: Florian Pritz <bluewind at xssn.at>
---
 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


More information about the pacman-dev mailing list