Gentoo Archives: gentoo-dev

From: Mike Frysinger <vapier@g.o>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] Re: [gentoo-commits] gentoo-x86 commit in eclass: cdrom.eclass
Date: Wed, 18 Jan 2012 11:58:46
Message-Id: 201201180657.59189.vapier@gentoo.org
In Reply to: Re: [gentoo-dev] Re: [gentoo-commits] gentoo-x86 commit in eclass: cdrom.eclass by Ulrich Mueller
1 On Wednesday 18 January 2012 06:45:59 Ulrich Mueller wrote:
2 > >>>>> On Wed, 18 Jan 2012, Mike Frysinger wrote:
3 > > ebuild:
4 > > CDROM_OPTIONAL="yes"
5 > > inherit cdrom
6 > >
7 > > eclass:
8 > > if [[ ${CDROM_OPTIONAL} == "yes" ]] ; then
9 > > PROPERTIES="cdinstall? ( interactive )"
10 > > else
11 > > PROPERTIES="interactive"
12 > > fi
13 > > IUSE="cdinstall"
14 >
15 > Looks good, except that I would move the IUSE line into the "then"
16 > clause.
17
18 err, yeah. i'll commit this proposal so you don't have to be on the hook for
19 the breakage ;).
20 -mike

Attachments

File name MIME type
signature.asc application/pgp-signature