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 ) id 1QKbCC-0003nM-O2 for garchives@archives.gentoo.org; Thu, 12 May 2011 19:05:12 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id CBE051C01A; Thu, 12 May 2011 19:05:04 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id 9B5CC1C005 for ; Thu, 12 May 2011 19:05:04 +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 2865A1B402E for ; Thu, 12 May 2011 19:05:04 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by pelican.gentoo.org (Postfix) with ESMTP id 99F8280062 for ; Thu, 12 May 2011 19:05:03 +0000 (UTC) From: "Zac Medico" To: gentoo-commits@lists.gentoo.org Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Zac Medico" Message-ID: <9d3564ac4479ac6367cf5f12f936edd61a67b114.zmedico@gentoo> Subject: [gentoo-commits] proj/portage:master commit in: pym/portage/cache/ X-VCS-Repository: proj/portage X-VCS-Files: pym/portage/cache/sqlite.py X-VCS-Directories: pym/portage/cache/ X-VCS-Committer: zmedico X-VCS-Committer-Name: Zac Medico X-VCS-Revision: 9d3564ac4479ac6367cf5f12f936edd61a67b114 Date: Thu, 12 May 2011 19:05:03 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: quoted-printable X-Archives-Salt: X-Archives-Hash: 68a81a534892a20e853f116ac670beb5 commit: 9d3564ac4479ac6367cf5f12f936edd61a67b114 Author: Zac Medico gentoo org> AuthorDate: Thu May 12 19:04:54 2011 +0000 Commit: Zac Medico gentoo org> CommitDate: Thu May 12 19:04:54 2011 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=3Dproj/portage.git;a= =3Dcommit;h=3D9d3564ac cache.sqlite: handle readonly more --- pym/portage/cache/sqlite.py | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/pym/portage/cache/sqlite.py b/pym/portage/cache/sqlite.py index 4eb340b..fcc62ff 100644 --- a/pym/portage/cache/sqlite.py +++ b/pym/portage/cache/sqlite.py @@ -78,7 +78,7 @@ class database(fs_template.FsBased): database=3D_unicode_decode(self._dbpath), **connection_kwargs) self._db_cursor =3D self._db_connection.cursor() self._db_cursor.execute("PRAGMA encoding =3D %s" % self._db_escape_st= ring("UTF-8")) - if not self._ensure_access(self._dbpath): + if not self.readonly and not self._ensure_access(self._dbpath): raise cache_errors.InitializationError(self.__class__, "can't ensure= perms on %s" % self._dbpath) self._db_init_cache_size(config["cache_bytes"]) self._db_init_synchronous(config["synchronous"])