summaryrefslogtreecommitdiffstats
path: root/meta-gnome/recipes-gnome/system-tools/system-tools-backends-2.10.2/add-angstrom-distro.patch
blob: cb03fd86e552f1f6cc0af30929e8ac7b6bbfebcb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
From b5084616a3bc2a0d485f43aeae69c6025f3f857e Mon Sep 17 00:00:00 2001
From: Koen Kooi <koen@dominion.thruhere.net>
Date: Fri, 10 Jun 2011 18:44:21 +0200
Subject: [PATCH] add support for the angstrom distribtion

Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
---
 Utils/Platform.pm |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/Utils/Platform.pm b/Utils/Platform.pm
index fc76360..8b8c770 100644
--- a/Utils/Platform.pm
+++ b/Utils/Platform.pm
@@ -92,6 +92,7 @@ my $PLATFORM_INFO = {
   "nexenta-1.0"     => [ "Nexenta GNU/Solaris", "1.0", "Ellate" ],
   "yellowdog-4.1"   => [ "Yellow Dog Linux", "4.1", "Sagitta" ],
   "guadalinex-v4"   => [ "Guadalinex", "v4", "Toro" ],
+  "angstrom"        => [ "Angstrom", "", "" ],
 };
 
 sub get_platform_info
@@ -143,6 +144,7 @@ sub ensure_distro_map
      "vine-3.1"         => "vine-3.0",
      "vlos-1.2"         => "gentoo",
      "nexenta-1.0"      => "solaris-2.11",
+     "angstrom"         => "debian",
      );
 
   return $metamap{$distro} if ($metamap{$distro});
@@ -375,6 +377,7 @@ sub guess
                   [ \&check_ark ],
                   [ \&check_yoper ],
                   [ \&check_distro_file, "/etc/yellowdog-release", "yellowdog", "^Yellow Dog Linux release (\\S+)" ],
+                  [ \&check_file_exists, "/etc/angstrom-version", "angstrom" ],
                  ],
     "FreeBSD" => [[ \&check_freebsd ]],
     "SunOS"   => [[ \&check_solaris ]]
-- 
1.6.6.1