summaryrefslogtreecommitdiffstats
path: root/ipalib
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 /ipalib
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 'ipalib')
-rw-r--r--ipalib/plugins/trust.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/ipalib/plugins/trust.py b/ipalib/plugins/trust.py
index 8790dcd2..6c7ea560 100644
--- a/ipalib/plugins/trust.py
+++ b/ipalib/plugins/trust.py
@@ -561,7 +561,7 @@ sides.
base_id = DEFAULT_RANGE_SIZE + (
pysss_murmur.murmurhash3(
dom_sid,
- len(dom_sid), 0xdeadbeef
+ len(dom_sid), 0xdeadbeefL
) % 10000
) * DEFAULT_RANGE_SIZE