From: Eric Bollengier Date: Tue, 17 Feb 2009 15:46:02 +0000 (+0000) Subject: ebl Add message before copies list X-Git-Tag: Release-3.0.0~227 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=8a2a5477616e4730ef0bd393bdfc88ce32843a56;p=bacula%2Fbacula ebl Add message before copies list git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@8461 91ce42f0-d328-0410-95d8-f526ca767f89 --- 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);