# HG changeset patch # User Pascal Bellard # Date 1209762770 0 # Node ID 3364afe06006f723c81c0b51eaed744d823b01a2 # Parent 67255ebad6ce7d48de6d63f3f6c1b5121e6a5033 Hardinfo: fix os diff -r 67255ebad6ce -r 3364afe06006 hardinfo/receipt --- a/hardinfo/receipt Fri May 02 23:00:08 2008 +0200 +++ b/hardinfo/receipt Fri May 02 21:12:50 2008 +0000 @@ -14,10 +14,15 @@ compile_rules() { cd $src - patch -p0 < ../stuff/modules.patch || exit 1 - patch -p0 < ../stuff/users.patch || exit 1 - patch -p0 < ../stuff/languages.patch || exit 1 - patch -p0 < ../stuff/boots.patch || exit 1 + while read file; do + patch -p0 < ../stuff/$file || exit 1 + done <= '0' && buf[0] <= '9') || buf[0] != 'D')) { + os->distro = g_strdup_printf + ("Debian GNU/Linux %s", buf); ++ } ++ else if (!strncmp(distro_db[i].codename, "slitaz", 6)) { ++ os->distro = g_strdup_printf ++ ("Slitaz GNU/Linux %s", buf); + } else { + os->distro = g_strdup(buf); + }