From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 35BB913800E for ; Fri, 3 Aug 2012 13:59:46 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 0B06CE0529; Fri, 3 Aug 2012 13:59:38 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id D193FE0529 for ; Fri, 3 Aug 2012 13:59:38 +0000 (UTC) Received: from hornbill.gentoo.org (hornbill.gentoo.org [94.100.119.163]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 31D4D1B4048 for ; Fri, 3 Aug 2012 13:59:38 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by hornbill.gentoo.org (Postfix) with ESMTP id F21B8E543C for ; Fri, 3 Aug 2012 13:59:36 +0000 (UTC) From: "André Erdmann" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "André Erdmann" Message-ID: <1344002403.05a9261e481711e2b8fc932b2f0f5bc901fd978b.dywi@gentoo> Subject: [gentoo-commits] proj/R_overlay:master commit in: / X-VCS-Repository: proj/R_overlay X-VCS-Files: roverlay.py X-VCS-Directories: / X-VCS-Committer: dywi X-VCS-Committer-Name: André Erdmann X-VCS-Revision: 05a9261e481711e2b8fc932b2f0f5bc901fd978b X-VCS-Branch: master Date: Fri, 3 Aug 2012 13:59:36 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 1a56f94a-a810-4b70-b340-9299920ab42e X-Archives-Hash: 0bd7cb522e0034d714bf07c20a63f623 commit: 05a9261e481711e2b8fc932b2f0f5bc901fd978b Author: André Erdmann mailerd de> AuthorDate: Fri Aug 3 14:00:03 2012 +0000 Commit: André Erdmann mailerd de> CommitDate: Fri Aug 3 14:00:03 2012 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/R_overlay.git;a=commit;h=05a9261e fix __name__ check in roverlay.py --- roverlay.py | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/roverlay.py b/roverlay.py index bd250ea..06cce51 100755 --- a/roverlay.py +++ b/roverlay.py @@ -35,7 +35,7 @@ class DIE ( object ): die = DIE.die -if __name__ != '__main__': +if __name__ not in ( '__main__', 'roverlay' ): die ( "Please don't import this script...", DIE.BAD_USAGE )