aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuillaume Cottenceau <gc@mandriva.com>2003-01-28 11:03:57 +0000
committerGuillaume Cottenceau <gc@mandriva.com>2003-01-28 11:03:57 +0000
commitcfef91dc4c8fee141b6285320a9f90cc459ba9a8 (patch)
tree357d6705551ee20c04564259e5eb160ee5ce3d6a
parent63cfbd0cb7bfd4ba581b7430d8311758507bc2b0 (diff)
downloadrpmdrake-cfef91dc4c8fee141b6285320a9f90cc459ba9a8.tar
rpmdrake-cfef91dc4c8fee141b6285320a9f90cc459ba9a8.tar.gz
rpmdrake-cfef91dc4c8fee141b6285320a9f90cc459ba9a8.tar.bz2
rpmdrake-cfef91dc4c8fee141b6285320a9f90cc459ba9a8.tar.xz
rpmdrake-cfef91dc4c8fee141b6285320a9f90cc459ba9a8.zip
use require_root_capability thx to titi
-rwxr-xr-xedit-urpm-sources.pl6
-rwxr-xr-xrpmdrake4
2 files changed, 8 insertions, 2 deletions
diff --git a/edit-urpm-sources.pl b/edit-urpm-sources.pl
index 8731bfe2..400e3d8c 100755
--- a/edit-urpm-sources.pl
+++ b/edit-urpm-sources.pl
@@ -20,9 +20,13 @@
#
# $Id$
-$> and (exec {'consolehelper'} $0, @ARGV or die "consolehelper missing");
use strict;
+use lib qw(/usr/lib/libDrakX);
+use common;
+
+require_root_capability();
+
use rpmdrake;
$::isStandalone = 1;
diff --git a/rpmdrake b/rpmdrake
index daa7202c..319dc846 100755
--- a/rpmdrake
+++ b/rpmdrake
@@ -31,14 +31,16 @@ BEGIN { #- we want to run this code before the Gtk->init of the use-my_gtk
", $basename->($0);
exit 0;
};
- $> and (exec { 'consolehelper' } $0, @ARGV or die "consolehelper missing");
}
use strict;
use vars qw($MODE %options);
+use lib qw(/usr/lib/libDrakX);
+use common;
use rpmdrake;
+require_root_capability();
$MODE = 'install';
$0 =~ m|/rpmdrake-remove$| and $MODE = 'remove';