summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUlrich Müller <ulm@gentoo.org>2012-01-15 14:13:46 +0000
committerUlrich Müller <ulm@gentoo.org>2012-01-15 14:13:46 +0000
commitfcede3f74e66b380506172f164cbaee75a1fc349 (patch)
treef53574b38fbe476799fa4894d00fa18360b2e22f /eclass/cdrom.eclass
parentEmpty py-compile script instead of symlinking it to /path/to/true for automak... (diff)
downloadgentoo-2-fcede3f74e66b380506172f164cbaee75a1fc349.tar.gz
gentoo-2-fcede3f74e66b380506172f164cbaee75a1fc349.tar.bz2
gentoo-2-fcede3f74e66b380506172f164cbaee75a1fc349.zip
New variable CDROM_DISABLE_PROPERTIES. Set PROPERTIES only if this is unset.
Diffstat (limited to 'eclass/cdrom.eclass')
-rw-r--r--eclass/cdrom.eclass12
1 files changed, 11 insertions, 1 deletions
diff --git a/eclass/cdrom.eclass b/eclass/cdrom.eclass
index d2b9d4e1d9d5..94eda0815073 100644
--- a/eclass/cdrom.eclass
+++ b/eclass/cdrom.eclass
@@ -1,6 +1,6 @@
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/cdrom.eclass,v 1.2 2012/01/13 22:35:16 ulm Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/cdrom.eclass,v 1.3 2012/01/15 14:13:46 ulm Exp $
# @ECLASS: cdrom.eclass
# @MAINTAINER:
@@ -20,6 +20,16 @@ ___ECLASS_ONCE_CDROM=1
inherit portability
+# @ECLASS-VARIABLE: CDROM_DISABLE_PROPERTIES
+# @DEFAULT_UNSET
+# @DESCRIPTION:
+# By default, the eclass sets PROPERTIES="interactive".
+# A non-empty value of CDROM_DISABLE_PROPERTIES suppresses this.
+
+if [[ -z ${CDROM_DISABLE_PROPERTIES} ]]; then
+ PROPERTIES="interactive"
+fi
+
# @FUNCTION: cdrom_get_cds
# @USAGE: <file on cd1> [file on cd2] [file on cd3] [...]
# @DESCRIPTION: