From: Michael Tremer Date: Tue, 18 Jan 2011 18:18:41 +0000 (+0100) Subject: fireinfo: Fix hash collision because of very weird UUID. X-Git-Tag: v2.9-core45~1^2~34 X-Git-Url: http://git.ipfire.org/?p=people%2Fpmueller%2Fipfire-2.x.git;a=commitdiff_plain;h=090e421172e56743af36a4f3e734b8b60e4e0b0c;ds=sidebyside fireinfo: Fix hash collision because of very weird UUID. --- diff --git a/lfs/fireinfo b/lfs/fireinfo index abc9d848dd..97b5a87056 100644 --- a/lfs/fireinfo +++ b/lfs/fireinfo @@ -70,6 +70,10 @@ $(subst %,%_MD5,$(objects)) : $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects)) @$(PREBUILD) @rm -rf $(DIR_APP) && cd $(DIR_SRC) && tar zxf $(DIR_DL)/$(DL_FILE) + + # Fix for braindead board vendors. + cd $(DIR_APP) && patch -Np1 < $(DIR_SRC)/src/patches/fireinfo-invalid-id.patch + cd $(DIR_APP) && python setup.py build cd $(DIR_APP) && python setup.py install diff --git a/src/patches/fireinfo-invalid-id.patch b/src/patches/fireinfo-invalid-id.patch new file mode 100644 index 0000000000..669deb62e8 --- /dev/null +++ b/src/patches/fireinfo-invalid-id.patch @@ -0,0 +1,18 @@ +commit ac68f90a0229083d755e7e2e8980822405ac2da8 +Author: Michael Tremer +Date: Tue Jan 18 19:11:06 2011 +0100 + + Add invalid ID: 00020003-0004-0005-0006-000700080009. + +diff --git a/fireinfo/system.py b/fireinfo/system.py +index 135c29b..690eae2 100644 +--- a/fireinfo/system.py ++++ b/fireinfo/system.py +@@ -41,6 +41,7 @@ INVALID_ID_STRINGS = ( + "N/A", "n/a", + "12345", "54321", "202020", + "Chassis", "chassis", ++ "00020003-0004-0005-0006-000700080009", + ) + + class Singleton(type):