Sophie

Sophie

distrib > Mageia > 2 > x86_64 > media > core-release-src > by-pkgid > 43dfed18861b4501862b15cf8205085a > files > 12

libreport-2.0.8-5.mga2.src.rpm

diff --git a/src/lib/dump_dir.c b/src/lib/dump_dir.c
index ba4b50f..1928b0c 100644
--- a/src/lib/dump_dir.c
+++ b/src/lib/dump_dir.c
@@ -494,7 +494,7 @@ void dd_create_basic_files(struct dump_dir *dd, uid_t uid)
     release = load_text_file("/etc/system-release",
             DD_LOAD_TEXT_RETURN_NULL_ON_FAILURE);
     if (!release)
-        release = load_text_file("/etc/redhat-release", /*flags:*/ 0);
+        release = load_text_file("/etc/release", /*flags:*/ 0);
     dd_save_text(dd, FILENAME_OS_RELEASE, release);
     free(release);
 }
diff --git a/src/plugins/bugzilla.conf b/src/plugins/bugzilla.conf
index 18eba5a..3942b01 100644
--- a/src/plugins/bugzilla.conf
+++ b/src/plugins/bugzilla.conf
@@ -1,5 +1,5 @@
 # Bugzilla URL
-BugzillaURL = https://bugzilla.redhat.com/
+BugzillaURL = https://bugs.mageia.org/
 # yes means that ssl certificates will be checked
 SSLVerify = yes
 # your login has to exist, if you don have any, please create one
diff --git a/src/plugins/report_Bugzilla.xml b/src/plugins/report_Bugzilla.xml
index 385b6f4..5a3a981 100644
--- a/src/plugins/report_Bugzilla.xml
+++ b/src/plugins/report_Bugzilla.xml
@@ -74,21 +74,21 @@
             <description xml:lang="uk">Адреса сервера Bugzilla</description>
             <description xml:lang="zh_CN">Bugzilla 服务器地址</description>
             <description xml:lang="zh_TW">Bugzilla 伺服器的位址</description>
-            <default-value>https://bugzilla.redhat.com</default-value>
-            <note-html>You can create bugzilla.redhat.com account &lt;a href="https://bugzilla.redhat.com/createaccount.cgi"&gt;here&lt;/a&gt;</note-html>
-            <note-html xml:lang="de">Sie können &lt;a href="https://bugzilla.redhat.com/createaccount.cgi"&gt;hier&lt;/a&gt; ein bugzilla.redhat.com-Konto einrichten</note-html>
-            <note-html xml:lang="en_GB">You can create bugzilla.redhat.com account &lt;a href="https://bugzilla.redhat.com/createaccount.cgi"&gt;here&lt;/a&gt;</note-html>
-            <note-html xml:lang="es">Puede crear una cuenta bugzilla.redhat.com &lt;a href="https://bugzilla.redhat.com/createaccount.cgi"&gt;aqui&lt;/a&gt;</note-html>
-            <note-html xml:lang="fr">Vous pouvez créer un compte bugzilla.redhat.com &lt;a href="https://bugzilla.redhat.com/createaccount.cgi"&gt;ici&lt;/a&gt;</note-html>
-            <note-html xml:lang="it">E' possibile creare un account bugzilla.redhat.com &lt;a href="https://bugzilla.redhat.com/createaccount.cgi"&gt;da quì&lt;/a&gt;</note-html>
-            <note-html xml:lang="nl">Je kunt &lt;a href="https://bugzilla.redhat.com/createaccount.cgi"&gt;hier&lt;/a&gt; een bugzilla.redhat.com account aanmken</note-html>
-            <note-html xml:lang="pl">Można utworzyć konto w witrynie bugzilla.redhat.com <a href="https://bugzilla.redhat.com/createaccount.cgi">pod tym adresem</a></note-html>
-            <note-html xml:lang="pt">Pode criar uma conta bugzilla.redhat.com &lt;a href="https://bugzilla.redhat.com/createaccount.cgi"&gt;aqui&lt;/a&gt;</note-html>
-            <note-html xml:lang="pt_BR">Você pode criar um aconta no bugzilla.redhat.com &lt;a href="https://bugzilla.redhat.com/createaccount.cgi"&gt;here&lt;/a&gt;</note-html>
-            <note-html xml:lang="sv">Du kan skapa ett konto på bugzilla.redhat.com &lt;a href="https://bugzilla.redhat.com/createaccount.cgi"&gt;här&lt;/a&gt;</note-html>
-            <note-html xml:lang="uk">Створити обліковий запис bugzilla.redhat.com можна &lt;a href="https://bugzilla.redhat.com/createaccount.cgi"&gt;тут&lt;/a&gt;</note-html>
-            <note-html xml:lang="zh_CN">您可以在 &lt;a href="https://bugzilla.redhat.com/createaccount.cgi"&gt;这里&lt;/a&gt; 创建 bugzilla.redhat.com 账户 </note-html>
-            <note-html xml:lang="zh_TW">您可以 &lt;a href="https://bugzilla.redhat.com/createaccount.cgi"&gt;從這裡&lt;/a&gt; 建立 bugzilla.redhat.com 帳號</note-html>
+            <default-value>https://bugs.mageia.org</default-value>
+	    <note-html>You can create bugs.mageia.org account &lt;a href=http://identity.mageia.org/register/"&gt;here&lt;/a&gt;</note-html>
+	    <note-html xml:lang="de">Sie können &lt;a href="http://identity.mageia.org/register/"&gt;hier&lt;/a&gt; ein bugs.mageia.org-Konto einrichten</note-html>
+	    <note-html xml:lang="en_GB">You can create bugs.mageia.org account &lt;a href="http://identity.mageia.org/register/"&gt;here&lt;/a&gt;</note-html>
+	    <note-html xml:lang="es">Puede crear una cuenta bugs.mageia.org &lt;a href="http://identity.mageia.org/register/"&gt;aqui&lt;/a&gt;</note-html>
+	    <note-html xml:lang="fr">Vous pouvez créer un compte bugs.mageia.org &lt;a href="http://identity.mageia.org/register/"&gt;ici&lt;/a&gt;</note-html>
+	    <note-html xml:lang="it">E' possibile creare un account bugs.mageia.org &lt;a href="http://identity.mageia.org/register/"&gt;da quì&lt;/a&gt;</note-html>
+	    <note-html xml:lang="nl">Je kunt &lt;a href="http://identity.mageia.org/register/"&gt;hier&lt;/a&gt; een bugs.mageia.org account aanmken</note-html>
+	    <note-html xml:lang="pl">Można utworzyć konto w witrynie bugs.mageia.org <a href="http://identity.mageia.org/register/">pod tym adresem</a></note-html>
+	    <note-html xml:lang="pt">Pode criar uma conta bugs.mageia.org &lt;a href="http://identity.mageia.org/register/"&gt;aqui&lt;/a&gt;</note-html>
+	    <note-html xml:lang="pt_BR">Você pode criar um aconta no bugs.mageia.org &lt;a href="http://identity.mageia.org/register/"&gt;here&lt;/a&gt;</note-html>
+	    <note-html xml:lang="sv">Du kan skapa ett konto på bugs.mageia.org &lt;a href="http://identity.mageia.org/register/"&gt;här&lt;/a&gt;</note-html>
+	    <note-html xml:lang="uk">Створити обліковий запис bugs.mageia.org можна &lt;a href="http://identity.mageia.org/register/"&gt;тут&lt;/a&gt;</note-html>
+	    <note-html xml:lang="zh_CN">您可以在 &lt;a href="http://identity.mageia.org/register/"&gt;这里&lt;/a&gt; 创建 bugs.mageia.org 账户 </note-html>
+	    <note-html xml:lang="zh_TW">您可以 &lt;a href="http://identity.mageia.org/register/"&gt;從這裡&lt;/a&gt; 建立 bugs.mageia.org 帳號</note-html>
         </option>
         <option type="text" name="Bugzilla_Login">
             <label>User name</label>
@@ -202,4 +202,4 @@
             </option>
         </advanced-options>
     </options>
-</event>
\ No newline at end of file
+</event>
diff --git a/src/plugins/report_Bugzilla.xml.in b/src/plugins/report_Bugzilla.xml.in
index bda60bc..c46f26d 100644
--- a/src/plugins/report_Bugzilla.xml.in
+++ b/src/plugins/report_Bugzilla.xml.in
@@ -15,8 +15,8 @@
             <_label>Bugzilla URL</_label>
             <allow-empty>no</allow-empty>
             <_description>Address of Bugzilla server</_description>
-            <default-value>https://bugzilla.redhat.com</default-value>
-            <_note-html>You can create bugzilla.redhat.com account &lt;a href="https://bugzilla.redhat.com/createaccount.cgi"&gt;here&lt;/a&gt;</_note-html>
+            <default-value>https://bugs.mageia.org</default-value>
+	    <_note-html>You can create bugs.mageia.org account &lt;a href="http://identity.mageia.org/register/"&gt;here&lt;/a&gt;</_note-html>
         </option>
         <option type="text" name="Bugzilla_Login">
             <_label>User name</_label>
diff --git a/src/plugins/reporter-bugzilla.c b/src/plugins/reporter-bugzilla.c
index d9f06c1..82f45c0 100644
--- a/src/plugins/reporter-bugzilla.c
+++ b/src/plugins/reporter-bugzilla.c
@@ -154,8 +154,8 @@ int main(int argc, char **argv)
         else
             hash = xstrdup(abrt_hash);
 
-        /* it's fedora specific */
-        char *query = xasprintf("ALL whiteboard:\"%s\" product:\"Fedora\"", hash);
+        /* it's Mageia specific */
+        char *query = xasprintf("ALL whiteboard:\"%s\" product:\"Mageia\"", hash);
         free(hash);
 
         xmlrpc_value *result = abrt_xmlrpc_call(client, "Bug.search", "({s:s})",
diff --git a/src/plugins/rhbz.c b/src/plugins/rhbz.c
index 592fbae..c3fea66 100644
--- a/src/plugins/rhbz.c
+++ b/src/plugins/rhbz.c
@@ -449,7 +449,7 @@ int rhbz_new_bug(struct abrt_xmlrpc *ax, problem_data_t *problem_data,
     {
         result = abrt_xmlrpc_call(ax, "Bug.create", "({s:s,s:s,s:s,s:s,s:s,s:s,s:s,s:i})",
                                   "product", product,
-                                  "component", component,
+                                  "component", "Core Packages",
                                   "version", version,
                                   "summary", summary,
                                   "description", full_dsc,
@@ -461,7 +461,7 @@ int rhbz_new_bug(struct abrt_xmlrpc *ax, problem_data_t *problem_data,
     {
         result = abrt_xmlrpc_call(ax, "Bug.create", "({s:s,s:s,s:s,s:s,s:s,s:s,s:s})",
                                   "product", product,
-                                  "component", component,
+                                  "component", "Core Packages",
                                   "version", version,
                                   "summary", summary,
                                   "description", full_dsc,