From 3ab2b5568bdff891c4ee7bddd512c94eb7d25888 Mon Sep 17 00:00:00 2001 From: Eric Bollengier Date: Tue, 17 Feb 2009 15:46:02 +0000 Subject: [PATCH] ebl Add message before copies list git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@8461 91ce42f0-d328-0410-95d8-f526ca767f89 --- bacula/src/cats/sql_list.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/bacula/src/cats/sql_list.c b/bacula/src/cats/sql_list.c index a7feae7b54..df933acf7b 100644 --- a/bacula/src/cats/sql_list.c +++ b/bacula/src/cats/sql_list.c @@ -271,7 +271,15 @@ void db_list_copies_records(JCR *jcr, B_DB *mdb, uint32_t limit, char *JobIds, goto bail_out; } - list_result(jcr, mdb, sendit, ctx, type); + if (mdb->result && sql_num_rows(mdb)) { + if (JobIds && JobIds[0]) { + sendit(ctx, _("These JobIds have copies as follows:\n")); + } else { + sendit(ctx, _("The catalog contains copies as follows:\n")); + } + + list_result(jcr, mdb, sendit, ctx, type); + } sql_free_result(mdb); -- 2.39.5