public inbox for ipfire-scm@lists.ipfire.org
 help / color / mirror / Atom feed
From: git@ipfire.org
To: ipfire-scm@lists.ipfire.org
Subject: [git.ipfire.org] IPFire 2.x development tree branch, next, updated. e39096cf66b2e16880400f70d3792f25399fff13
Date: Sat, 15 Feb 2014 18:43:13 +0100	[thread overview]
Message-ID: <20140215174313.9C94921069@argus.ipfire.org> (raw)

[-- Attachment #1: Type: text/plain, Size: 3753 bytes --]

This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "IPFire 2.x development tree".

The branch, next has been updated
       via  e39096cf66b2e16880400f70d3792f25399fff13 (commit)
       via  7e8b0ca029b10385812ebdf15249e47bcd3003c3 (commit)
      from  983203fa03b187602dc9f3d7e6d2793af0b77133 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit e39096cf66b2e16880400f70d3792f25399fff13
Merge: 7e8b0ca 983203f
Author: Michael Tremer <michael.tremer(a)ipfire.org>
Date:   Sat Feb 15 18:42:37 2014 +0100

    Merge branch 'next' of ssh://git.ipfire.org/pub/git/ipfire-2.x into next

commit 7e8b0ca029b10385812ebdf15249e47bcd3003c3
Author: Michael Tremer <michael.tremer(a)ipfire.org>
Date:   Sat Feb 15 18:40:55 2014 +0100

    fireinfo: Exclude some more patterns.

-----------------------------------------------------------------------

Summary of changes:
 lfs/fireinfo                                       |  2 +
 ...o-0001-Exclude-some-more-invalid-patterns.patch | 55 ++++++++++++++++++++++
 2 files changed, 57 insertions(+)
 create mode 100644 src/patches/fireinfo-0001-Exclude-some-more-invalid-patterns.patch

Difference in files:
diff --git a/lfs/fireinfo b/lfs/fireinfo
index f71437f..f1ee58a 100644
--- a/lfs/fireinfo
+++ b/lfs/fireinfo
@@ -71,6 +71,8 @@ $(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
new file mode 100644
index 0000000..fd1c525
--- /dev/null
+++ b/src/patches/fireinfo-0001-Exclude-some-more-invalid-patterns.patch
@@ -0,0 +1,55 @@
+From 220ffe76a48c72171d7724f7f602a2fdd8bbca6a Mon Sep 17 00:00:00 2001
+From: Michael Tremer <michael.tremer(a)ipfire.org>
+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
+


hooks/post-receive
--
IPFire 2.x development tree

                 reply	other threads:[~2014-02-15 17:43 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20140215174313.9C94921069@argus.ipfire.org \
    --to=git@ipfire.org \
    --cc=ipfire-scm@lists.ipfire.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox