mirror of
git://git.yoctoproject.org/meta-selinux
synced 2026-01-01 13:58:04 +00:00
Change the references to check for the distribution flag of 'selinux' being set before taking any action within the bbappends. This prevents the signature from being modified. Also remove PR changes, as they are no longer allowed. Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
27 lines
610 B
Python
27 lines
610 B
Python
# OpenEmbedded sitecustomize.py (C) 2002-2008 Michael 'Mickey' Lauer <mlauer@vanille-media.de>
|
|
# GPLv2 or later
|
|
# Version: 20081123
|
|
# Features:
|
|
# * set proper default encoding
|
|
# Features removed for SELinux:
|
|
# * enable readline completion in the interactive interpreter
|
|
# * load command line history on startup
|
|
# * save command line history on exit
|
|
|
|
import os
|
|
|
|
def __enableDefaultEncoding():
|
|
import sys
|
|
try:
|
|
sys.setdefaultencoding( "utf8" )
|
|
except LookupError:
|
|
pass
|
|
|
|
import sys
|
|
try:
|
|
import rlcompleter, readline
|
|
except ImportError:
|
|
pass
|
|
else:
|
|
__enableDefaultEncoding()
|