[gnome-color-manager/gnome-3-6] Detect Ubuntu casper based livecd's	as well
- From: Richard Hughes <rhughes src gnome org>
- To: commits-list gnome org
- Cc: 
- Subject: [gnome-color-manager/gnome-3-6] Detect Ubuntu casper based livecd's	as well
- Date: Tue,  1 Jan 2013 22:11:11 +0000 (UTC)
commit 6c9d3f7c5ef469f0fec64e7d9e0243fbebf02058
Author: Pascal de Bruijn <pmjdebruijn pcode nl>
Date:   Tue Jan 1 22:17:26 2013 +0100
    Detect Ubuntu casper based livecd's as well
    
    Signed-off-by: Richard Hughes <richard hughsie com>
 src/gcm-calibrate-main.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/gcm-calibrate-main.c b/src/gcm-calibrate-main.c
index ab28a58..f47e003 100644
--- a/src/gcm-calibrate-main.c
+++ b/src/gcm-calibrate-main.c
@@ -771,7 +771,8 @@ gcm_calibrate_is_livecd (void)
 		g_error_free (error);
 		goto out;
 	}
-	ret = g_strstr_len (data, -1, "liveimg") != NULL;
+	ret = (g_strstr_len (data, -1, "liveimg") != NULL ||
+	       g_strstr_len (data, -1, "casper") != NULL);
 out:
 	g_free (data);
 	return ret;
[
Date Prev][
Date Next]   [
Thread Prev][
Thread Next]   
[
Thread Index]
[
Date Index]
[
Author Index]