diff options
Diffstat (limited to 'meta-webserver/recipes-webadmin/ajenti/ajenti/distro-detection-openembedded.patch')
-rw-r--r-- | meta-webserver/recipes-webadmin/ajenti/ajenti/distro-detection-openembedded.patch | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/meta-webserver/recipes-webadmin/ajenti/ajenti/distro-detection-openembedded.patch b/meta-webserver/recipes-webadmin/ajenti/ajenti/distro-detection-openembedded.patch new file mode 100644 index 000000000..9ef9bac74 --- /dev/null +++ b/meta-webserver/recipes-webadmin/ajenti/ajenti/distro-detection-openembedded.patch | |||
@@ -0,0 +1,42 @@ | |||
1 | From 5b3864f5ff76915887774fa78961616b6e7c1649 Mon Sep 17 00:00:00 2001 | ||
2 | From: Paul Eggleton <paul.eggleton@linux.intel.com> | ||
3 | Date: Thu, 15 Mar 2012 03:25:36 +0000 | ||
4 | Subject: [PATCH] Hardcode distro detection | ||
5 | |||
6 | Use "openembedded" as the distro identification string if none is able | ||
7 | to be detected. | ||
8 | |||
9 | Upstream-Status: Inappropriate [config] | ||
10 | |||
11 | Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com> | ||
12 | --- | ||
13 | ajenti/utils/utils.py | 6 +++++- | ||
14 | 1 files changed, 5 insertions(+), 1 deletions(-) | ||
15 | |||
16 | diff --git a/ajenti/utils/utils.py b/ajenti/utils/utils.py | ||
17 | index c7e1463..98199c0 100755 | ||
18 | --- a/ajenti/utils/utils.py | ||
19 | +++ b/ajenti/utils/utils.py | ||
20 | @@ -41,6 +41,7 @@ def detect_platform(mapping=True): | ||
21 | platform_mapping = { | ||
22 | 'ubuntu': 'debian', | ||
23 | 'linuxmint': 'debian', | ||
24 | + 'openembedded': 'debian', | ||
25 | } | ||
26 | |||
27 | if platform.system() != 'Linux': | ||
28 | @@ -57,7 +58,10 @@ def detect_platform(mapping=True): | ||
29 | try: | ||
30 | dist = shell('strings -4 /etc/issue').split()[0] | ||
31 | except: | ||
32 | - dist = 'unknown' | ||
33 | + dist = '' | ||
34 | + | ||
35 | + if dist == '': | ||
36 | + dist = 'openembedded' | ||
37 | |||
38 | res = dist.strip().lower() | ||
39 | if res in base_mapping: | ||
40 | -- | ||
41 | 1.7.4.4 | ||
42 | |||