Package: analog
Version: 2:6.0-19
Severity: minor
Tags: patch
User: [email protected]
Usertags: origin-ubuntu natty ubuntu-patch
*** /tmp/tmpZfTtHM
In Ubuntu, the attached patch was applied to achieve the following:
* debian/patches/02_windows_vista_7.patch: (LP: #222813)
add patch by Andrew Glen-Young to recognize Windows 7 and Vista.
Thanks for considering the patch.
-- System Information:
Debian Release: squeeze/sid
APT prefers natty
APT policy: (500, 'natty')
Architecture: amd64 (x86_64)
Kernel: Linux 2.6.38-7-generic (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
diff -u analog-6.0/debian/patches/series analog-6.0/debian/patches/series
--- analog-6.0/debian/patches/series
+++ analog-6.0/debian/patches/series
@@ -2,0 +3 @@
+02_windows_vista_7.patch
only in patch2:
unchanged:
--- analog-6.0.orig/debian/patches/02_windows_vista_7.patch
+++ analog-6.0/debian/patches/02_windows_vista_7.patch
@@ -0,0 +1,27 @@
+From: Andrew Glen-Young
+Description: Recognize Windows Vista and Windows 7
+Bug-Ubuntu: https://launchpad.net/bugs/222813
+Bug-Debian: http://bugs.debian.org/
+Origin: vendor, https://launchpad.net/bugs/222813/comments/4
+Forwarded: no
+=== modified file 'src/tree.c'
+--- src/tree.c 2008-08-07 11:35:48 +0000
++++ src/tree.c 2009-10-16 11:38:24 +0000
+@@ -871,7 +871,15 @@
+ else
+ *name = "Windows:Unknown Windows";
+ }
+- else if (*c >= '6' && *c <= '9')
++ else if (*c == '6') {
++ if (*(c + 1) == '.' && (*(c + 2) == '0'))
++ *name = "Windows:Windows Vista";
++ else if (*(c + 1) == '.' && (*(c + 2) == '1'))
++ *name = "Windows:Windows 7";
++ else
++ *name = "Windows:Unknown Windows";
++ }
++ else if (*c >= '7' && *c <= '9')
+ *name = "Windows:Unknown Windows";
+ else
+ *name = "Windows:Windows NT";
+