From: Michael Tremer Date: Thu, 1 May 2014 18:40:02 +0000 (+0200) Subject: fireinfo: Update to 2.1.10. X-Git-Url: http://git.ipfire.org/?p=people%2Fteissler%2Fipfire-2.x.git;a=commitdiff_plain;h=2cdb0759e70b56e5bd3afa211f3ba93976b64848 fireinfo: Update to 2.1.10. Excludes some more invalid strings. --- diff --git a/lfs/fireinfo b/lfs/fireinfo index f1ee58a13..0c3670656 100644 --- a/lfs/fireinfo +++ b/lfs/fireinfo @@ -24,7 +24,7 @@ include Config -VER = 2.1.9 +VER = 2.1.10 THISAPP = fireinfo-v$(VER) DL_FILE = $(THISAPP).tar.gz @@ -40,7 +40,7 @@ objects = $(DL_FILE) $(DL_FILE) = $(DL_FROM)/$(DL_FILE) -$(DL_FILE)_MD5 = a4dbb3a4111f263b5059b2f76b14b32c +$(DL_FILE)_MD5 = cc7838cda22d7d4e9bb177aa1dc6f25a install : $(TARGET) @@ -71,8 +71,6 @@ $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects)) @$(PREBUILD) @rm -rf $(DIR_APP) && cd $(DIR_SRC) && tar zxf $(DIR_DL)/$(DL_FILE) - cd $(DIR_APP) && patch -Np1 < $(DIR_SRC)/src/patches/fireinfo-0001-Exclude-some-more-invalid-patterns.patch - cd $(DIR_APP) && [ -x "configure" ] || sh ./autogen.sh cd $(DIR_APP) && ./configure --prefix=/usr cd $(DIR_APP) && make $(MAKETUNING) diff --git a/src/patches/fireinfo-0001-Exclude-some-more-invalid-patterns.patch b/src/patches/fireinfo-0001-Exclude-some-more-invalid-patterns.patch deleted file mode 100644 index fd1c525b6..000000000 --- a/src/patches/fireinfo-0001-Exclude-some-more-invalid-patterns.patch +++ /dev/null @@ -1,55 +0,0 @@ -From 220ffe76a48c72171d7724f7f602a2fdd8bbca6a Mon Sep 17 00:00:00 2001 -From: Michael Tremer -Date: Sat, 15 Feb 2014 18:37:54 +0100 -Subject: [PATCH] Exclude some more invalid patterns. - ---- - src/fireinfo/system.py | 15 +++++++++++++-- - 1 file changed, 13 insertions(+), 2 deletions(-) - -diff --git a/src/fireinfo/system.py b/src/fireinfo/system.py -index 40ff7b0..c875f96 100644 ---- a/src/fireinfo/system.py -+++ b/src/fireinfo/system.py -@@ -44,12 +44,17 @@ INVALID_ID_STRINGS = ( - "Chassis", "chassis", - "Not Applicable", - "None", "empty", -+ "XXXXX", - "01010101-0101-0101-0101-010101010101", - "00020003-0004-0005-0006-000700080009", - "03000200-0400-0500-0006-000700080009", - "0000000", "00000000", - ) - -+INVALID_ID_STRINGS_EXACT_MATCH = ( -+ "NA", -+) -+ - class Singleton(type): - def __init__(cls, name, bases, dict): - super(Singleton, cls).__init__(name, bases, dict) -@@ -234,12 +239,18 @@ class System(object): - if id is None: - continue - -- for i in INVALID_ID_STRINGS: -- if i in id: -+ for i in INVALID_ID_STRINGS_EXACT_MATCH: -+ if id == i: - id = None - break - - if id: -+ for i in INVALID_ID_STRINGS: -+ if i in id: -+ id = None -+ break -+ -+ if id: - _ids.append(id) - - ids = _ids --- -1.8.3.1 -