* [PATCH 0/2] [1.2] Fix distro checks in sanity.bbclass
@ 2012-04-18 9:56 Paul Eggleton
2012-04-18 9:56 ` [PATCH 1/2] classes/sanity: trim trailing newline when reading /etc/redhat-release Paul Eggleton
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: Paul Eggleton @ 2012-04-18 9:56 UTC (permalink / raw)
To: openembedded-core
After actually testing the distro sanity check on current distro
versions on top of master, two issues were discovered; these
trivial patches fix those issues.
The following changes since commit 973351cf2e338f07c11395d494193e9c62857f2d:
libproxy: remove dependency on gconf when x11 not in DISTRO_FEATURES (2012-04-18 00:31:24 +0100)
are available in the git repository at:
git://git.openembedded.org/openembedded-core-contrib paule/sanity-distro-fix
http://cgit.openembedded.org/cgit.cgi/openembedded-core-contrib/log/?h=paule/sanity-distro-fix
Paul Eggleton (2):
classes/sanity: trim trailing newline when reading
/etc/redhat-release
classes/sanity: import regular expression module in SuSE distro check
meta/classes/sanity.bbclass | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
--
1.7.5.4
^ permalink raw reply [flat|nested] 4+ messages in thread
* [PATCH 1/2] classes/sanity: trim trailing newline when reading /etc/redhat-release
2012-04-18 9:56 [PATCH 0/2] [1.2] Fix distro checks in sanity.bbclass Paul Eggleton
@ 2012-04-18 9:56 ` Paul Eggleton
2012-04-18 9:56 ` [PATCH 2/2] classes/sanity: import regular expression module in SuSE distro check Paul Eggleton
2012-04-18 15:10 ` [PATCH 0/2] [1.2] Fix distro checks in sanity.bbclass Saul Wold
2 siblings, 0 replies; 4+ messages in thread
From: Paul Eggleton @ 2012-04-18 9:56 UTC (permalink / raw)
To: openembedded-core
Any trailing whitespace needs to be stripped before comparing it to the
SANITY_TESTED_DISTROS list.
Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
---
meta/classes/sanity.bbclass | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/meta/classes/sanity.bbclass b/meta/classes/sanity.bbclass
index 4d4abd3..3ec449c 100644
--- a/meta/classes/sanity.bbclass
+++ b/meta/classes/sanity.bbclass
@@ -120,7 +120,7 @@ def check_supported_distro(e):
if os.path.exists("/etc/redhat-release"):
f = open("/etc/redhat-release", "r")
try:
- distro = f.readline()
+ distro = f.readline().strip()
finally:
f.close()
elif os.path.exists("/etc/SuSE-release"):
--
1.7.5.4
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [PATCH 2/2] classes/sanity: import regular expression module in SuSE distro check
2012-04-18 9:56 [PATCH 0/2] [1.2] Fix distro checks in sanity.bbclass Paul Eggleton
2012-04-18 9:56 ` [PATCH 1/2] classes/sanity: trim trailing newline when reading /etc/redhat-release Paul Eggleton
@ 2012-04-18 9:56 ` Paul Eggleton
2012-04-18 15:10 ` [PATCH 0/2] [1.2] Fix distro checks in sanity.bbclass Saul Wold
2 siblings, 0 replies; 4+ messages in thread
From: Paul Eggleton @ 2012-04-18 9:56 UTC (permalink / raw)
To: openembedded-core
We call re.sub here, so we need to "import re" or an error occurs
(tested on OpenSuSE 12.1).
Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
---
meta/classes/sanity.bbclass | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/meta/classes/sanity.bbclass b/meta/classes/sanity.bbclass
index 3ec449c..9cd04c4 100644
--- a/meta/classes/sanity.bbclass
+++ b/meta/classes/sanity.bbclass
@@ -124,6 +124,7 @@ def check_supported_distro(e):
finally:
f.close()
elif os.path.exists("/etc/SuSE-release"):
+ import re
f = open("/etc/SuSE-release", "r")
try:
distro = f.readline()
--
1.7.5.4
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH 0/2] [1.2] Fix distro checks in sanity.bbclass
2012-04-18 9:56 [PATCH 0/2] [1.2] Fix distro checks in sanity.bbclass Paul Eggleton
2012-04-18 9:56 ` [PATCH 1/2] classes/sanity: trim trailing newline when reading /etc/redhat-release Paul Eggleton
2012-04-18 9:56 ` [PATCH 2/2] classes/sanity: import regular expression module in SuSE distro check Paul Eggleton
@ 2012-04-18 15:10 ` Saul Wold
2 siblings, 0 replies; 4+ messages in thread
From: Saul Wold @ 2012-04-18 15:10 UTC (permalink / raw)
To: Patches and discussions about the oe-core layer; +Cc: Paul Eggleton
On 04/18/2012 02:56 AM, Paul Eggleton wrote:
> After actually testing the distro sanity check on current distro
> versions on top of master, two issues were discovered; these
> trivial patches fix those issues.
>
>
> The following changes since commit 973351cf2e338f07c11395d494193e9c62857f2d:
>
> libproxy: remove dependency on gconf when x11 not in DISTRO_FEATURES (2012-04-18 00:31:24 +0100)
>
> are available in the git repository at:
> git://git.openembedded.org/openembedded-core-contrib paule/sanity-distro-fix
> http://cgit.openembedded.org/cgit.cgi/openembedded-core-contrib/log/?h=paule/sanity-distro-fix
>
> Paul Eggleton (2):
> classes/sanity: trim trailing newline when reading
> /etc/redhat-release
> classes/sanity: import regular expression module in SuSE distro check
>
> meta/classes/sanity.bbclass | 3 ++-
> 1 files changed, 2 insertions(+), 1 deletions(-)
>
Merged into OE-Core
Thanks
Sau!
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2012-04-18 15:20 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-04-18 9:56 [PATCH 0/2] [1.2] Fix distro checks in sanity.bbclass Paul Eggleton
2012-04-18 9:56 ` [PATCH 1/2] classes/sanity: trim trailing newline when reading /etc/redhat-release Paul Eggleton
2012-04-18 9:56 ` [PATCH 2/2] classes/sanity: import regular expression module in SuSE distro check Paul Eggleton
2012-04-18 15:10 ` [PATCH 0/2] [1.2] Fix distro checks in sanity.bbclass Saul Wold
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox