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 1Rggaz-0000xW-9h for garchives@archives.gentoo.org; Fri, 30 Dec 2011 17:50:21 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 92E0021C028; Fri, 30 Dec 2011 17:50:11 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id 66A4D21C028 for ; Fri, 30 Dec 2011 17:50:11 +0000 (UTC) Received: from pelican.gentoo.org (unknown [66.219.59.40]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id DEFC11B4003 for ; Fri, 30 Dec 2011 17:50:10 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by pelican.gentoo.org (Postfix) with ESMTP id 21F8380043 for ; Fri, 30 Dec 2011 17:50:10 +0000 (UTC) From: "Anthony G. Basile" To: gentoo-commits@lists.gentoo.org Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Anthony G. Basile" Message-ID: Subject: [gentoo-commits] proj/webapp-config:master commit in: WebappConfig/ X-VCS-Repository: proj/webapp-config X-VCS-Files: WebappConfig/dotconfig.py X-VCS-Directories: WebappConfig/ X-VCS-Committer: blueness X-VCS-Committer-Name: Anthony G. Basile X-VCS-Revision: b693439b662c3d4d2bf6a445cb89c04eb924160f Date: Fri, 30 Dec 2011 17:50:10 +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: b19049ad-848b-4d7d-b41b-685e5d0df6b2 X-Archives-Hash: 6b293120a33c011bbd39212d3761c756 commit: b693439b662c3d4d2bf6a445cb89c04eb924160f Author: Michael astralcloak net> AuthorDate: Fri Dec 30 17:44:51 2011 +0000 Commit: Anthony G. Basile gentoo org> CommitDate: Fri Dec 30 17:49:25 2011 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=3Dproj/webapp-config= .git;a=3Dcommit;h=3Db693439b Forward-compat WEB_CATEGORY variable Versions previous to 1.50.18 did not include WEB_CATEGORY which was stored in ${webapp_installed_dir}/.webapp, but newer versions require it= . Make old installations forward-compatible by pretending this variable exi= sts. Reported-By: Patrick patrick-nagel.net> Signed-off-by: Anthony G. Basile gentoo.org> X-Gentoo-Bug: 355295 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=3D355295 --- WebappConfig/dotconfig.py | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/WebappConfig/dotconfig.py b/WebappConfig/dotconfig.py index 610d1e3..ad3d894 100644 --- a/WebappConfig/dotconfig.py +++ b/WebappConfig/dotconfig.py @@ -119,6 +119,10 @@ class DotConfig: def __getitem__(self, key): if key in self.__data.keys(): return self.__data[key] + # this key didn't exist in old versions, but new versions + # expect it. fix bug 355295 + elif key =3D=3D 'WEB_CATEGORY': + return '' =20 def __dot_config(self): ''' Returns the full path to the dot config file.'''