aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJason Woodward2009-08-11 22:00:19 -0400
committerJason Woodward2009-08-11 22:00:19 -0400
commitf9f69604360f57cf4292837bcd14b1e7e7a2cf05 (patch)
treed77c21699cefe3a66a92f148d9ef1ab05e72b322
parent3a828ed86404e695f2a06aef51af8a51c58ae919 (diff)
downloadslapt-get-f9f69604360f57cf4292837bcd14b1e7e7a2cf05.tar.gz
do not print empty strings as suggestions
-rw-r--r--ChangeLog1
-rw-r--r--src/transaction.c3
2 files changed, 4 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 9f210bd..4bda1d5 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,6 @@
0.10.1d Aug 11, 2009
+ * do not print empty strings as suggestions
* free priority strings and resources when parsing is complete
* updated Greek translation from George Vlahavas
diff --git a/src/transaction.c b/src/transaction.c
index 6a5aa7a..ac91858 100644
--- a/src/transaction.c
+++ b/src/transaction.c
@@ -875,6 +875,9 @@ static void add_suggestion(slapt_transaction_t *tran, slapt_pkg_info_t *pkg)
return;
}
+ while (isspace(pkg->suggests[position]) != 0)
+ ++position;
+
while (position < len) {
int total_len = 0,rest_len = 0;
char *p = NULL,*si = NULL,*tmp_suggests = NULL;