Sophie

Sophie

distrib > Mageia > 9 > armv7hl > media > core-release-src > by-pkgid > 637c3bd06e5fefd7812aa087106b9a2f > files > 6

qt4urpm-1.0.1-20.mga9.src.rpm

diff -ur qt4urpm-1.0.1.orig/main.cpp qt4urpm-1.0.1/main.cpp
--- qt4urpm-1.0.1.orig/main.cpp	2011-04-24 21:33:15.000000000 +0400
+++ qt4urpm-1.0.1/main.cpp	2016-02-23 11:30:14.000000000 +0300
@@ -63,20 +63,16 @@
 
 		// Try to start as root
 		qt4urpm::termlog("Trying to start as root.");
-		std::string cmd("/usr/lib/kde4/libexec/kdesu ");
+		std::string cmd("pkexec /usr/bin/qt4urpm ");
 		cmd += argv[0];
-		if (system(cmd.c_str()) != 0) {
-			cmd = "/usr/lib64/kde4/libexec/kdesu ";
-			cmd += argv[0];
 			if (system(cmd.c_str()) != 0) {
 				QString msg
 					(QMainWindow::tr("You need to be root!\n\nTo ease the use of "
-					 "qt4urpm we suggest to install libkdesu5 (run \"gurpmi libkdesu5\")"));
+					 "qt4urpm we suggest to install polkit (run \"gurpmi polkit\")"));
 				QMessageBox msgBox
 					(QMessageBox::Critical, QMainWindow::tr("Not root!"), msg);
 				msgBox.exec();
 			}
-		}
 		return 0;
 	}

diff -ur qt4urpm-1.0.1.orig/qt4urpm_de.ts qt4urpm-1.0.1/qt4urpm_de.ts
--- qt4urpm-1.0.1.orig/qt4urpm_de.ts	2016-02-23 12:43:03.000000000 +0300
+++ qt4urpm-1.0.1/qt4urpm_de.ts	2016-02-23 12:46:56.000000000 +0300
@@ -18,13 +18,13 @@
         <location filename="main.cpp" line="73"/>
         <source>You need to be root!
 
-To ease the use of qt4urpm we suggest to install libkdesu5 (run &quot;gurpmi libkdesu5&quot;)</source>
+To ease the use of qt4urpm we suggest to install polkit (run &quot;gurpmi polkit&quot;)</source>
         <oldsource>You need to be root!
 
 To ease the use of qt4urpm we suggest to install gksu (run &quot;gurpmi gksu&quot;)</oldsource>
         <translation>Du musst Root sein!
 
-Um das Arbeiten mit qt4urpm zu erleichtern, empfehlen wir libkdesu5 zu installieren (&quot;gurpmi libkdesu5&quot;)</translation>
+Um das Arbeiten mit qt4urpm zu erleichtern, empfehlen wir polkit zu installieren (&quot;gurpmi polkit&quot;)</translation>
     </message>
     <message>
         <location filename="main.cpp" line="76"/>
diff -ur qt4urpm-1.0.1.orig/qt4urpm_es.ts qt4urpm-1.0.1/qt4urpm_es.ts
--- qt4urpm-1.0.1.orig/qt4urpm_es.ts	2016-02-23 12:43:03.000000000 +0300
+++ qt4urpm-1.0.1/qt4urpm_es.ts	2016-02-23 12:47:37.000000000 +0300
@@ -7,7 +7,7 @@
         <location filename="main.cpp" line="73"/>
         <source>You need to be root!
 
-To ease the use of qt4urpm we suggest to install libkdesu5 (run &quot;gurpmi libkdesu5&quot;)</source>
+To ease the use of qt4urpm we suggest to install polkit (run &quot;gurpmi polkit&quot;)</source>
         <oldsource>You need to be root!
 
 To ease the use of qt4urpm we suggest to install gksu (run &quot;gurpmi gksu&quot;)</oldsource>
diff -ur qt4urpm-1.0.1.orig/qt4urpm_fr.ts qt4urpm-1.0.1/qt4urpm_fr.ts
--- qt4urpm-1.0.1.orig/qt4urpm_fr.ts	2016-02-23 12:43:03.000000000 +0300
+++ qt4urpm-1.0.1/qt4urpm_fr.ts	2016-02-23 12:48:10.000000000 +0300
@@ -7,13 +7,13 @@
         <location filename="main.cpp" line="73"/>
         <source>You need to be root!
 
-To ease the use of qt4urpm we suggest to install libkdesu5 (run &quot;gurpmi libkdesu5&quot;)</source>
+To ease the use of qt4urpm we suggest to install polkit (run &quot;gurpmi polkit&quot;)</source>
         <oldsource>You need to be root!
 
 To ease the use of qt4urpm we suggest to install gksu (run &quot;gurpmi gksu&quot;)</oldsource>
         <translation>Vous devez être connecté en root !
 
-Pour faciliter l&apos;utilisation de qt4urpm nous suggérons d&apos;installer libkdesu5 (lancer &quot;gurpmi libkdesu5&quot;)</translation>
+Pour faciliter l&apos;utilisation de qt4urpm nous suggérons d&apos;installer polkit (lancer &quot;gurpmi polkit&quot;)</translation>
     </message>
     <message>
         <location filename="main.cpp" line="76"/>
diff -ur qt4urpm-1.0.1.orig/qt4urpm_ru.ts qt4urpm-1.0.1/qt4urpm_ru.ts
--- qt4urpm-1.0.1.orig/qt4urpm_ru.ts	2016-02-23 12:43:03.000000000 +0300
+++ qt4urpm-1.0.1/qt4urpm_ru.ts	2016-02-23 12:48:39.000000000 +0300
@@ -7,13 +7,13 @@
         <location filename="main.cpp" line="73"/>
         <source>You need to be root!
 
-To ease the use of qt4urpm we suggest to install libkdesu5 (run &quot;gurpmi libkdesu5&quot;)</source>
+To ease the use of qt4urpm we suggest to install polkit (run &quot;gurpmi polkit&quot;)</source>
         <oldsource>You need to be root!
 
 To ease the use of qt4urpm we suggest to install gksu (run &quot;gurpmi gksu&quot;)</oldsource>
         <translation>Вы должны иметь права root!
 
-Для более простого использования qt4urpm мы рекомендуем установить libkdesu5 (&quot;gurpmi libkdesu5&quot;)</translation>
+Для более простого использования qt4urpm мы рекомендуем установить polkit (&quot;gurpmi polkit&quot;)</translation>
     </message>
     <message>
         <location filename="main.cpp" line="76"/>