From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <gentoo-commits+bounces-630072-garchives=archives.gentoo.org@lists.gentoo.org>
Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80])
	by finch.gentoo.org (Postfix) with ESMTP id F08F61381F3
	for <garchives@archives.gentoo.org>; Tue, 24 Sep 2013 17:10:50 +0000 (UTC)
Received: from pigeon.gentoo.org (localhost [127.0.0.1])
	by pigeon.gentoo.org (Postfix) with SMTP id 080A6E0AC1;
	Tue, 24 Sep 2013 17:10:49 +0000 (UTC)
Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183])
	(using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits))
	(No client certificate requested)
	by pigeon.gentoo.org (Postfix) with ESMTPS id 4E3E7E0AC1
	for <gentoo-commits@lists.gentoo.org>; Tue, 24 Sep 2013 17:10:48 +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 5F21033ED9D
	for <gentoo-commits@lists.gentoo.org>; Tue, 24 Sep 2013 17:10:47 +0000 (UTC)
Received: from localhost.localdomain (localhost [127.0.0.1])
	by hornbill.gentoo.org (Postfix) with ESMTP id 1963DE5461
	for <gentoo-commits@lists.gentoo.org>; Tue, 24 Sep 2013 17:10:46 +0000 (UTC)
From: "Sven Vermeulen" <swift@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Content-Transfer-Encoding: 8bit
Content-type: text/plain; charset=UTF-8
Reply-To: gentoo-dev@lists.gentoo.org, "Sven Vermeulen" <swift@gentoo.org>
Message-ID: <1380029949.3ac5fcd1c6ef5b5fbdd91db151300deb8cd3b408.swift@gentoo>
Subject: [gentoo-commits] proj/hardened-refpolicy:master commit in: support/
X-VCS-Repository: proj/hardened-refpolicy
X-VCS-Files: support/policyvers.py
X-VCS-Directories: support/
X-VCS-Committer: swift
X-VCS-Committer-Name: Sven Vermeulen
X-VCS-Revision: 3ac5fcd1c6ef5b5fbdd91db151300deb8cd3b408
X-VCS-Branch: master
Date: Tue, 24 Sep 2013 17:10:46 +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
X-Archives-Salt: e2ec6741-abfe-423d-88de-9468c38478b4
X-Archives-Hash: bd07184a8f497bda2aa5d1de192683f2

commit:     3ac5fcd1c6ef5b5fbdd91db151300deb8cd3b408
Author:     Chris PeBenito <cpebenito <AT> tresys <DOT> com>
AuthorDate: Mon Sep 23 18:26:32 2013 +0000
Commit:     Sven Vermeulen <swift <AT> gentoo <DOT> org>
CommitDate: Tue Sep 24 13:39:09 2013 +0000
URL:        http://git.overlays.gentoo.org/gitweb/?p=proj/hardened-refpolicy.git;a=commit;h=3ac5fcd1

Fix support/policyvers.py not to error if building policy on a SELinux-disabled system.

---
 support/policyvers.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/support/policyvers.py b/support/policyvers.py
index 74b8de0..0d969a4 100644
--- a/support/policyvers.py
+++ b/support/policyvers.py
@@ -1,3 +1,4 @@
 #!/usr/bin/python
 import selinux
-print selinux.security_policyvers()
+if selinux.is_selinux_enabled():
+	print selinux.security_policyvers()