From mboxrd@z Thu Jan  1 00:00:00 1970
Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org)
	by finch.gentoo.org with esmtp (Exim 4.60)
	(envelope-from <gentoo-commits+bounces-335052-garchives=archives.gentoo.org@lists.gentoo.org>)
	id 1Q90z2-0000qN-Tk
	for garchives@archives.gentoo.org; Sun, 10 Apr 2011 20:11:45 +0000
Received: from pigeon.gentoo.org (localhost [127.0.0.1])
	by pigeon.gentoo.org (Postfix) with SMTP id 2E55A1C01D;
	Sun, 10 Apr 2011 20:11:37 +0000 (UTC)
Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183])
	by pigeon.gentoo.org (Postfix) with ESMTP id 028361C01D
	for <gentoo-commits@lists.gentoo.org>; Sun, 10 Apr 2011 20:11:36 +0000 (UTC)
Received: from pelican.gentoo.org (unknown [66.219.59.40])
	(using TLSv1 with cipher ADH-CAMELLIA256-SHA (256/256 bits))
	(No client certificate requested)
	by smtp.gentoo.org (Postfix) with ESMTPS id 96CC81B409D
	for <gentoo-commits@lists.gentoo.org>; Sun, 10 Apr 2011 20:11:36 +0000 (UTC)
Received: from localhost.localdomain (localhost [127.0.0.1])
	by pelican.gentoo.org (Postfix) with ESMTP id BB29180065
	for <gentoo-commits@lists.gentoo.org>; Sun, 10 Apr 2011 20:11:35 +0000 (UTC)
From: "Alexys Jacob" <ultrabug@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Content-type: text/plain; charset=UTF-8
Reply-To: gentoo-dev@lists.gentoo.org, "Alexys Jacob" <ultrabug@gentoo.org>
Message-ID: <b27af187ecdd5786e2b4783d7ee0fa4f1e770ea1.ultrabug@gentoo>
Subject: [gentoo-commits] dev/ultrabug:master commit in: dev-db/mongodb/
X-VCS-Repository: dev/ultrabug
X-VCS-Files: dev-db/mongodb/Manifest dev-db/mongodb/mongodb-1.8.1.ebuild
X-VCS-Directories: dev-db/mongodb/
X-VCS-Committer: ultrabug
X-VCS-Committer-Name: Alexys Jacob
X-VCS-Revision: b27af187ecdd5786e2b4783d7ee0fa4f1e770ea1
Date: Sun, 10 Apr 2011 20:11:35 +0000 (UTC)
Precedence: bulk
List-Post: <mailto:gentoo-commits@lists.gentoo.org>
List-Help: <mailto:gentoo-commits+help@lists.gentoo.org>
List-Unsubscribe: <mailto:gentoo-commits+unsubscribe@lists.gentoo.org>
List-Subscribe: <mailto:gentoo-commits+subscribe@lists.gentoo.org>
List-Id: Gentoo Linux mail <gentoo-commits.gentoo.org>
X-BeenThere: gentoo-commits@lists.gentoo.org
Content-Transfer-Encoding: quoted-printable
X-Archives-Salt: 
X-Archives-Hash: b157874cfa025c910a1fba29cac01b4d

commit:     b27af187ecdd5786e2b4783d7ee0fa4f1e770ea1
Author:     Ultrabug <ultrabug <AT> gentoo <DOT> org>
AuthorDate: Sun Apr 10 20:11:29 2011 +0000
Commit:     Alexys Jacob <ultrabug <AT> gentoo <DOT> org>
CommitDate: Sun Apr 10 20:11:29 2011 +0000
URL:        http://git.overlays.gentoo.org/gitweb/?p=3Ddev/ultrabug.git;a=
=3Dcommit;h=3Db27af187

mongodb work

---
 dev-db/mongodb/Manifest             |    2 +-
 dev-db/mongodb/mongodb-1.8.1.ebuild |    9 +++++++--
 2 files changed, 8 insertions(+), 3 deletions(-)

diff --git a/dev-db/mongodb/Manifest b/dev-db/mongodb/Manifest
index c9ca59c..15f2f0a 100644
--- a/dev-db/mongodb/Manifest
+++ b/dev-db/mongodb/Manifest
@@ -2,4 +2,4 @@ AUX mongodb-1.8-fix-scons.patch 1649 RMD160 1e5be2fe75f25=
c511b1d70dd1dd7977c8f1a
 AUX mongodb.confd 246 RMD160 fee0f87d5f6715b237d7195ea6dfd24a50868102 SH=
A1 dd786ce383ea3a112352f5b48e4948dd3377b009 SHA256 5dd09535664bd7bc9d0e92=
7896f8e768f225c43c1d84bde9812cb36866f1f587
 AUX mongodb.initd 754 RMD160 c63b5ff46124c0fbddcfdf82d9a83cb7a8f529af SH=
A1 30b33e0ea5affda165eb17f0b4abdd518838f2a5 SHA256 56028d6e9c71781c9e27a0=
d1240c8c895341fa7893bec745b806c6092a86cd19
 DIST mongodb-src-r1.8.1.tar.gz 1718969 RMD160 e8739fd15c40eac9934045af43=
65c13f204d16fe SHA1 615cfe4ace4899e73a7083059c7178d8f5c19f03 SHA256 8b268=
b4f8c4d055c74add1fc995f103d893657c4291964d370899ebefd0bc97d
-EBUILD mongodb-1.8.1.ebuild 2130 RMD160 ff2c2ca25274092ce2d4b3fc223c147b=
8254cab2 SHA1 e3cbc510e73e2576d43930d4112a72cc39758900 SHA256 29e0e7611b1=
abed30b19135de756fddd90191941470f4e3ee1c640fe968ed7d9
+EBUILD mongodb-1.8.1.ebuild 2212 RMD160 2aea5d023d13c15ec14835d6371f813f=
f4e88097 SHA1 54ebbd00e2b5f1bdb5de76c7a71221056079db09 SHA256 9ada9b1b751=
d53ec8524689a367b193714643adad3a92891581cc8b0d23c8667

diff --git a/dev-db/mongodb/mongodb-1.8.1.ebuild b/dev-db/mongodb/mongodb=
-1.8.1.ebuild
index 20a62c4..9cdc7c1 100644
--- a/dev-db/mongodb/mongodb-1.8.1.ebuild
+++ b/dev-db/mongodb/mongodb-1.8.1.ebuild
@@ -51,6 +51,11 @@ src_compile() {
 	scons ${scons_opts} all || die "Compile failed"
 }
=20
+pkg_preinst() {
+	has_version '<dev-db/mongodb-1.8'
+	PREVIOUS_LESS_THAN_1_8=3D$?
+}
+
 src_install() {
 	scons ${scons_opts} --full --nostrip install --prefix=3D"${D}"/usr || d=
ie "Install failed"
=20
@@ -74,9 +79,9 @@ src_install() {
 # }
=20
 pkg_postinst() {
-	if has_version '<dev-db/mongodb-1.8'; then
+	if [ ${PREVIOUS_LESS_THAN_1_8} -eq 0 ]; then
 		ewarn "You just upgraded from a previous version of mongodb !"
 		ewarn "Make sure you run 'mongod --upgrade' before using this version.=
"
 	fi
-	elog "Journalling is now set as default, see ${CONFDIR}/${PN}."
+	elog "Journaling is now set as default, see ${CONFDIR}/${PN}."
 }
\ No newline at end of file