[python] missing notmuch_database_needs_upgrade
authorPatrick Totzke <patricktotzke@googlemail.com>
Mon, 4 Jul 2011 20:39:26 +0000 (21:39 +0100)
committerW. Trevor King <wking@tremily.us>
Fri, 7 Nov 2014 17:38:58 +0000 (09:38 -0800)
f9/f8f40ec0a0522f6b0268607e8c02433c1ce713 [new file with mode: 0644]

diff --git a/f9/f8f40ec0a0522f6b0268607e8c02433c1ce713 b/f9/f8f40ec0a0522f6b0268607e8c02433c1ce713
new file mode 100644 (file)
index 0000000..5a801b8
--- /dev/null
@@ -0,0 +1,105 @@
+Return-Path: <patricktotzke@googlemail.com>\r
+X-Original-To: notmuch@notmuchmail.org\r
+Delivered-To: notmuch@notmuchmail.org\r
+Received: from localhost (localhost [127.0.0.1])\r
+       by olra.theworths.org (Postfix) with ESMTP id 92EAA431FD0\r
+       for <notmuch@notmuchmail.org>; Mon,  4 Jul 2011 13:39:38 -0700 (PDT)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: -0.799\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=-0.799 tagged_above=-999 required=5\r
+       tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1,\r
+       FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7] autolearn=disabled\r
+Received: from olra.theworths.org ([127.0.0.1])\r
+       by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
+       with ESMTP id lYxspIpMKSHm for <notmuch@notmuchmail.org>;\r
+       Mon,  4 Jul 2011 13:39:38 -0700 (PDT)\r
+Received: from mail-wy0-f181.google.com (mail-wy0-f181.google.com\r
+       [74.125.82.181]) (using TLSv1 with cipher RC4-SHA (128/128 bits))\r
+       (No client certificate requested)\r
+       by olra.theworths.org (Postfix) with ESMTPS id B937E431FB6\r
+       for <notmuch@notmuchmail.org>; Mon,  4 Jul 2011 13:39:37 -0700 (PDT)\r
+Received: by wyh22 with SMTP id 22so4176062wyh.26\r
+       for <notmuch@notmuchmail.org>; Mon, 04 Jul 2011 13:39:36 -0700 (PDT)\r
+DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;\r
+       d=googlemail.com; s=gamma;\r
+       h=date:from:to:subject:message-id:mime-version:content-type\r
+       :content-disposition:user-agent;\r
+       bh=hfewSqwjy6WdNiF9yUNV+i8UJj/psRb+bM8m6Uzfqq8=;\r
+       b=pQ3FWnM45su6m11P9vvxPBmsHWSzWf4A9bmSk1+0COmLfsrFqOjH9rhuwtF6pTEYDL\r
+       vqfA7EoB3qktyk0K4RuaPBz0XHCiX+yXwUYVBBbQWtCcwTd8XMvZnWLhUq+xtf2gcB54\r
+       ecWyw3t//fShD5Ch9NEl793vBEWdLTY7r7GAI=\r
+Received: by 10.216.234.80 with SMTP id r58mr5398869weq.109.1309811976352;\r
+       Mon, 04 Jul 2011 13:39:36 -0700 (PDT)\r
+Received: from brick.lan (cpc1-sgyl2-0-0-cust47.sgyl.cable.virginmedia.com\r
+       [80.192.18.48])\r
+       by mx.google.com with ESMTPS id n21sm3279502wed.19.2011.07.04.13.39.33\r
+       (version=TLSv1/SSLv3 cipher=OTHER);\r
+       Mon, 04 Jul 2011 13:39:35 -0700 (PDT)\r
+Date: Mon, 4 Jul 2011 21:39:26 +0100\r
+From: Patrick Totzke <patricktotzke@googlemail.com>\r
+To: notmuch@notmuchmail.org\r
+Subject: [python] missing notmuch_database_needs_upgrade\r
+Message-ID: <20110704203926.GA20238@brick.lan>\r
+MIME-Version: 1.0\r
+Content-Type: multipart/signed; micalg=pgp-sha1;\r
+       protocol="application/pgp-signature"; boundary="J/dobhs11T7y2rNN"\r
+Content-Disposition: inline\r
+User-Agent: Mutt/1.5.21 (2010-09-15)\r
+X-BeenThere: notmuch@notmuchmail.org\r
+X-Mailman-Version: 2.1.13\r
+Precedence: list\r
+List-Id: "Use and development of the notmuch mail system."\r
+       <notmuch.notmuchmail.org>\r
+List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
+       <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
+List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
+List-Post: <mailto:notmuch@notmuchmail.org>\r
+List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
+List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
+       <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
+X-List-Received-Date: Mon, 04 Jul 2011 20:39:38 -0000\r
+\r
+\r
+--J/dobhs11T7y2rNN\r
+Content-Type: text/plain; charset=us-ascii\r
+Content-Disposition: inline\r
+Content-Transfer-Encoding: quoted-printable\r
+\r
+Hiya,\r
+As mentioned shortly on the irc channel,\r
+notmuch python bindings seem to be missing 'notmuch_database_needs_upgrade'\r
+as Database().needs_upgrade() confirms.\r
+\r
+This seems to be due to a typo..\r
+\r
+index 5deb2a5..648f61a 100644\r
+--- a/bindings/python/notmuch/database.py\r
++++ b/bindings/python/notmuch/database.py\r
+@@ -195,7 +195,7 @@ class Database(object):\r
+         # Raise a NotmuchError if not initialized\r
+         self._verify_initialized_db()\r
+=20\r
+-        return notmuch_database_needs_upgrade(self._db)=20\r
++        return nmlib.notmuch_database_needs_upgrade(self._db)\r
+=20\r
+     def upgrade(self):\r
+         """Upgrades the current database\r
+\r
+cheers,\r
+/p\r
+\r
+--J/dobhs11T7y2rNN\r
+Content-Type: application/pgp-signature; name="signature.asc"\r
+Content-Description: Digital signature\r
+\r
+-----BEGIN PGP SIGNATURE-----\r
+Version: GnuPG v1.4.11 (GNU/Linux)\r
+\r
+iEYEARECAAYFAk4SJP4ACgkQlDQDZ9fWxapFBACfQolZ1H6zbO9bZVDqrwMSaA6m\r
+jiQAoLlM4fO/Ryt1ybn6xvAVIZJqTdwP\r
+=C+D1\r
+-----END PGP SIGNATURE-----\r
+\r
+--J/dobhs11T7y2rNN--\r