--- lib/Utils/DebugDump.cpp +++ lib/Utils/DebugDump.cpp @@ -330,7 +330,7 @@ void CDebugDump::Create(const char *pDir, uid_t uid) SaveText(FILENAME_KERNEL, buf.release); SaveText(FILENAME_ARCHITECTURE, buf.machine); std::string release; - LoadTextFile("/etc/redhat-release", release); + LoadTextFile("/etc/mandriva-release", release); const char *release_ptr = release.c_str(); unsigned len_1st_str = strchrnul(release_ptr, '\n') - release_ptr; release.erase(len_1st_str); /* usually simply removes trailing '\n' */ --- lib/Utils/parse_release.cpp.mandriva-release 2010-07-19 17:44:32.000000000 +0200 +++ lib/Utils/parse_release.cpp 2010-08-10 12:19:41.000000000 +0200 @@ -26,19 +26,19 @@ // caller is reposible for freeing *product* and *version* void parse_release(const char *release, char** product, char** version) { - if (strstr(release, "Rawhide")) + if (strstr(release, "Cooker")) { - *product = xstrdup("Fedora"); - *version = xstrdup("rawhide"); + *product = xstrdup("Mandriva Linux"); + *version = xstrdup("cooker"); VERB3 log("%s: version:'%s' product:'%s'", __func__, *version, *product); return; } struct strbuf *buf_product = strbuf_new(); - if (strstr(release, "Fedora")) - strbuf_append_str(buf_product, "Fedora"); - else if (strstr(release, "Red Hat Enterprise Linux")) - strbuf_append_str(buf_product, "Red Hat Enterprise Linux "); + if (strstr(release, "Mandriva")) + strbuf_append_str(buf_product, "Mandriva Linux"); + else if (strstr(release, "Mandriva Linux")) + strbuf_append_str(buf_product, "Mandriva Linux "); const char *r = strstr(release, "release"); const char *space = r ? strchr(r, ' ') : NULL;