summaryrefslogtreecommitdiffstats
path: root/ipapython/certmonger.py
diff options
context:
space:
mode:
authorMartin Kosek <mkosek@redhat.com>2013-08-13 02:10:01 -0400
committerMartin Kosek <mkosek@redhat.com>2013-08-13 15:33:33 +0200
commit2f952d710594faa81531f8a7823bffe9a19f7457 (patch)
treeaa7952fac877e58f822e2df9d8a0c6e8c51b724d /ipapython/certmonger.py
parent968b3693a0032e92aee06d1f0a11acc1e5e3d617 (diff)
downloadfreeipa.git-2f952d710594faa81531f8a7823bffe9a19f7457.tar.gz
freeipa.git-2f952d710594faa81531f8a7823bffe9a19f7457.tar.xz
freeipa.git-2f952d710594faa81531f8a7823bffe9a19f7457.zip
Prevent *.pyo and *.pyc multilib problems
Differences in the python byte code fails in a build validation (rpmdiff) done on difference architecture of the same package. This patch: 1) Ensures that timestamps of generated *.pyo and *.pyc files match 2) Python integer literals greater or equal 2^32 and lower than 2^64 are converted to long right away to prevent different type of the integer on architectures with different size of int https://fedorahosted.org/freeipa/ticket/3858
Diffstat (limited to 'ipapython/certmonger.py')
-rw-r--r--ipapython/certmonger.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/ipapython/certmonger.py b/ipapython/certmonger.py
index d347c2ae..03f4b237 100644
--- a/ipapython/certmonger.py
+++ b/ipapython/certmonger.py
@@ -398,7 +398,7 @@ def dogtag_start_tracking(ca, nickname, pin, pinfile, secdir, pre_command,
if pre_command is not None:
if not os.path.isabs(pre_command):
- if sys.maxsize > 2**32:
+ if sys.maxsize > 2**32L:
libpath = 'lib64'
else:
libpath = 'lib'
@@ -408,7 +408,7 @@ def dogtag_start_tracking(ca, nickname, pin, pinfile, secdir, pre_command,
if post_command is not None:
if not os.path.isabs(post_command):
- if sys.maxsize > 2**32:
+ if sys.maxsize > 2**32L:
libpath = 'lib64'
else:
libpath = 'lib'