fireinfo: Fix hash collision because of very weird UUID.

This commit is contained in:
Michael Tremer
2011-01-18 19:18:41 +01:00
parent 512d54a98f
commit 090e421172
2 changed files with 22 additions and 0 deletions

View File

@@ -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

View File

@@ -0,0 +1,18 @@
commit ac68f90a0229083d755e7e2e8980822405ac2da8
Author: Michael Tremer <michael.tremer@ipfire.org>
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):