From: Eric Bollengier Date: Sun, 21 Dec 2008 08:44:43 +0000 (+0000) Subject: ebl Display copies only if "copies" keyword is used X-Git-Tag: Release-3.0.0~431 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=8ddc315d7c0a3d78c57404c81eebc9c9d1131d71;p=bacula%2Fbacula ebl Display copies only if "copies" keyword is used git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@8213 91ce42f0-d328-0410-95d8-f526ca767f89 --- diff --git a/bacula/src/dird/ua_restore.c b/bacula/src/dird/ua_restore.c index 90eeb5184a..2e55a40405 100644 --- a/bacula/src/dird/ua_restore.c +++ b/bacula/src/dird/ua_restore.c @@ -1268,8 +1268,11 @@ static bool select_backups_before_date(UAContext *ua, RESTORE_CTX *rx, char *dat } if (rx->JobIds[0] != 0) { - /* Display a list of all copies */ - db_list_copies_records(ua->jcr, ua->db, 0, rx->JobIds, prtit, ua, HORZ_LIST); + if (find_arg(ua, NT_("copies")) > 0) { + /* Display a list of all copies */ + db_list_copies_records(ua->jcr, ua->db, 0, rx->JobIds, + prtit, ua, HORZ_LIST); + } /* Display a list of Jobs selected for this restore */ db_list_sql_query(ua->jcr, ua->db, uar_list_temp, prtit, ua, 1, HORZ_LIST); ok = true;