diff options
author | Angelo Naselli <anaselli@linux.it> | 2014-06-29 22:45:15 +0200 |
---|---|---|
committer | Angelo Naselli <anaselli@linux.it> | 2014-06-29 22:45:15 +0200 |
commit | ceba0d48c851f98f007befe43a26306285a75294 (patch) | |
tree | 9a48a0bd1110d927b4e7fcd15fd1eac0475d5bfb /modules/rpmdragora | |
parent | 2618ffaeb7307e3f5ade1afc81d7c218220fc1ce (diff) | |
download | colin-keep-ceba0d48c851f98f007befe43a26306285a75294.tar colin-keep-ceba0d48c851f98f007befe43a26306285a75294.tar.gz colin-keep-ceba0d48c851f98f007befe43a26306285a75294.tar.bz2 colin-keep-ceba0d48c851f98f007befe43a26306285a75294.tar.xz colin-keep-ceba0d48c851f98f007befe43a26306285a75294.zip |
start porting edit-urpm-sources.pl to YUI
Diffstat (limited to 'modules/rpmdragora')
-rwxr-xr-x | modules/rpmdragora/edit-urpm-sources.pl | 21 |
1 files changed, 14 insertions, 7 deletions
diff --git a/modules/rpmdragora/edit-urpm-sources.pl b/modules/rpmdragora/edit-urpm-sources.pl index 42b095f..5f6bb65 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; |