diff options
author | Thomas Beierlein <tomjbe@gentoo.org> | 2010-07-22 17:22:59 +0000 |
---|---|---|
committer | Thomas Beierlein <tomjbe@gentoo.org> | 2010-07-22 17:22:59 +0000 |
commit | 883bcd6b79e8177dad542b61b0e93426c0ae8594 (patch) | |
tree | 16ca0179e49b920305ee66bf630693805e3a8097 /app-backup/bacula | |
parent | Version bump (diff) | |
download | gentoo-2-883bcd6b79e8177dad542b61b0e93426c0ae8594.tar.gz gentoo-2-883bcd6b79e8177dad542b61b0e93426c0ae8594.tar.bz2 gentoo-2-883bcd6b79e8177dad542b61b0e93426c0ae8594.zip |
Make sqlite3 the default database if none or to many database backends are selected. Thanks darkside for pointing it out
(Portage version: 2.1.8.3/cvs/Linux x86_64)
Diffstat (limited to 'app-backup/bacula')
-rw-r--r-- | app-backup/bacula/ChangeLog | 6 | ||||
-rw-r--r-- | app-backup/bacula/bacula-5.0.2-r2.ebuild | 24 |
2 files changed, 16 insertions, 14 deletions
diff --git a/app-backup/bacula/ChangeLog b/app-backup/bacula/ChangeLog index 4c7bd517d577..524f062ee91e 100644 --- a/app-backup/bacula/ChangeLog +++ b/app-backup/bacula/ChangeLog @@ -1,6 +1,10 @@ # ChangeLog for app-backup/bacula # Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/app-backup/bacula/ChangeLog,v 1.97 2010/07/22 15:58:16 tomjbe Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-backup/bacula/ChangeLog,v 1.98 2010/07/22 17:22:59 tomjbe Exp $ + + 22 Jul 2010; Thomas Beierlein <tomjbe@gentoo.org> bacula-5.0.2-r2.ebuild: + Make sqlite3 the default database if none or to many database backends are + selected. Thanks darkside for pointing it out 22 Jul 2010; Thomas Beierlein <tomjbe@gentoo.org> bacula-5.0.2-r2.ebuild: revert batch-insert to always enabled diff --git a/app-backup/bacula/bacula-5.0.2-r2.ebuild b/app-backup/bacula/bacula-5.0.2-r2.ebuild index ea10df24945b..baaa6a84df0b 100644 --- a/app-backup/bacula/bacula-5.0.2-r2.ebuild +++ b/app-backup/bacula/bacula-5.0.2-r2.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2010 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/app-backup/bacula/bacula-5.0.2-r2.ebuild,v 1.2 2010/07/22 15:58:16 tomjbe Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-backup/bacula/bacula-5.0.2-r2.ebuild,v 1.3 2010/07/22 17:22:59 tomjbe Exp $ EAPI="2" inherit eutils multilib @@ -75,19 +75,17 @@ pkg_setup() { let dbnum++ fi if [[ "${dbnum}" -lt 1 ]]; then - eerror - eerror "To use ${P} it is required to set a database in the USE flags." - eerror "Supported databases are mysql, postgresql, sqlite3" - eerror - die "No database type selected." + ewarn + ewarn "No database backend selected, defaulting to sqlite3." + ewarn "Supported databases are mysql, postgresql, sqlite3" + ewarn + export mydbtype=sqlite3 elif [[ "${dbnum}" -gt 1 ]]; then - eerror - eerror "You have set ${P} to use multiple database types." - eerror "I don't know which to set as the default!" - eerror "You can use /etc/portage/package.use to set per-package USE flags" - eerror "Set it so only one database type, mysql, postgres, sqlite3" - eerror - die "Multiple database types selected." + ewarn + ewarn "Too many database backends selected, defaulting to sqlite3." + ewarn "Supported databases are mysql, postgresql, sqlite3" + ewarn + export mydbtype=sqlite3 fi fi |