Gentoo Archives: gentoo-commits

From: James Le Cuirot <chewi@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: eclass/
Date: Thu, 27 Apr 2017 21:42:00
Message-Id: 1493329281.be4042eab201d448f6156ded1ea0a978e9290d89.chewi@gentoo
1 commit: be4042eab201d448f6156ded1ea0a978e9290d89
2 Author: James Le Cuirot <chewi <AT> gentoo <DOT> org>
3 AuthorDate: Sun Apr 16 09:40:50 2017 +0000
4 Commit: James Le Cuirot <chewi <AT> gentoo <DOT> org>
5 CommitDate: Thu Apr 27 21:41:21 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=be4042ea
7
8 cdrom.eclass: Simplify printing of CD_ROOT_# variable names
9
10 eclass/cdrom.eclass | 7 +------
11 1 file changed, 1 insertion(+), 6 deletions(-)
12
13 diff --git a/eclass/cdrom.eclass b/eclass/cdrom.eclass
14 index a51270d33e9..4c4922fe341 100644
15 --- a/eclass/cdrom.eclass
16 +++ b/eclass/cdrom.eclass
17 @@ -122,12 +122,7 @@ cdrom_get_cds() {
18 einfo "If you do not have the CDs, but have the data files"
19 einfo "mounted somewhere on your filesystem, just export"
20 einfo "the following variables so they point to the right place:"
21 - einfon ""
22 - cdcnt=0
23 - while [[ ${cdcnt} -lt ${CDROM_TOTAL_CDS} ]] ; do
24 - ((++cdcnt))
25 - echo -n " CD_ROOT_${cdcnt}"
26 - done
27 + einfo $(printf "CD_ROOT_%d " $(seq ${#}))
28 echo
29 einfo "Or, if you have all the files in the same place, or"
30 einfo "you only have one cdrom, you can export CD_ROOT"