1 |
commit: a670f9dda42f718daad1538d6b5975d8dc59edf7 |
2 |
Author: Johannes Huber <johu <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Dec 21 00:02:10 2011 +0000 |
4 |
Commit: Johannes Huber <johu <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Dec 21 00:02:10 2011 +0000 |
6 |
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/kde.git;a=commit;h=a670f9dd |
7 |
|
8 |
[app-office/akonadi-server] Fix driver array fill, bug 395165 |
9 |
|
10 |
(Portage version: 2.2.0_alpha81/git/Linux i686, unsigned Manifest commit) |
11 |
|
12 |
--- |
13 |
.../akonadi-server/akonadi-server-9999.ebuild | 19 ++++++++++++------- |
14 |
1 files changed, 12 insertions(+), 7 deletions(-) |
15 |
|
16 |
diff --git a/app-office/akonadi-server/akonadi-server-9999.ebuild b/app-office/akonadi-server/akonadi-server-9999.ebuild |
17 |
index 92291b8..1be8867 100644 |
18 |
--- a/app-office/akonadi-server/akonadi-server-9999.ebuild |
19 |
+++ b/app-office/akonadi-server/akonadi-server-9999.ebuild |
20 |
@@ -35,15 +35,20 @@ REQUIRED_USE="|| ( sqlite mysql postgres )" |
21 |
|
22 |
pkg_setup() { |
23 |
# Set default storage backend in order: SQLite, MySQL, PostgreSQL |
24 |
+ # reverse driver check to keep the order |
25 |
+ if use postgres; then |
26 |
+ DRIVER="QPSQL" |
27 |
+ AVAILABLE+=" ${DRIVER}" |
28 |
+ fi |
29 |
+ |
30 |
+ if use mysql; then |
31 |
+ DRIVER="QMYSQL" |
32 |
+ AVAILABLE+=" ${DRIVER}" |
33 |
+ fi |
34 |
+ |
35 |
if use sqlite; then |
36 |
DRIVER="QSQLITE3" |
37 |
- AVAILABLE+=" ${driver}" |
38 |
- elif use mysql; then |
39 |
- DRIVER="QMYSQL" |
40 |
- AVAILABLE+=" ${driver}" |
41 |
- elif use postgres; then |
42 |
- DRIVER="QPSQL" |
43 |
- AVAILABLE+=" ${driver}" |
44 |
+ AVAILABLE+=" ${DRIVER}" |
45 |
fi |
46 |
|
47 |
# Notify about driver name change |