aboutsummaryrefslogtreecommitdiffstats
path: root/modules
diff options
context:
space:
mode:
authorAngelo Naselli <anaselli@linux.it>2014-06-29 22:45:15 +0200
committerAngelo Naselli <anaselli@linux.it>2014-06-29 22:45:15 +0200
commitceba0d48c851f98f007befe43a26306285a75294 (patch)
tree9a48a0bd1110d927b4e7fcd15fd1eac0475d5bfb /modules
parent2618ffaeb7307e3f5ade1afc81d7c218220fc1ce (diff)
downloadmanatools-ceba0d48c851f98f007befe43a26306285a75294.tar
manatools-ceba0d48c851f98f007befe43a26306285a75294.tar.gz
manatools-ceba0d48c851f98f007befe43a26306285a75294.tar.bz2
manatools-ceba0d48c851f98f007befe43a26306285a75294.tar.xz
manatools-ceba0d48c851f98f007befe43a26306285a75294.zip
start porting edit-urpm-sources.pl to YUI
Diffstat (limited to 'modules')
-rwxr-xr-xmodules/rpmdragora/edit-urpm-sources.pl21
1 files changed, 14 insertions, 7 deletions
diff --git a/modules/rpmdragora/edit-urpm-sources.pl b/modules/rpmdragora/edit-urpm-sources.pl
index 42b095f9..5f6bb65b 100755
--- a/modules/rpmdragora/edit-urpm-sources.pl
+++ b/modules/rpmdragora/edit-urpm-sources.pl
@@ -23,17 +23,24 @@
# $Id: edit-urpm-sources.pl 244763 2008-09-04 16:12:52Z tv $
use strict;
-use lib qw(/usr/lib/libDrakX);
use AdminPanel::Rpmdragora::init;
-use standalone;
use AdminPanel::rpmdragora;
-use common;
+use common qw(N);
use AdminPanel::Rpmdragora::edit_urpm_sources;
+use AdminPanel::Privileges;
-require_root_capability();
+if (AdminPanel::Privileges::require_root_capability()) {
+ require AdminPanel::Shared::GUI;
+ my $sh_gui = AdminPanel::Shared::GUI->new();
+ $sh_gui->warningMsgBox({
+ title => "gurpmi.addmedia",
+ text => N("root privileges required"),
+ });
+ exit (-1);
+}
-readconf();
+AdminPanel::rpmdragora::readconf();
-run();
+AdminPanel::Rpmdragora::edit_urpm_sources::run();
-myexit 0;
+AdminPanel::rpmdragora::myexit 0;