aboutsummaryrefslogtreecommitdiffstats
path: root/rpmdrake.pm
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2009-10-12 17:18:13 +0000
committerThierry Vignaud <tv@mandriva.org>2009-10-12 17:18:13 +0000
commit597b467c61498c0af85a1145f7897f14b4b38c5c (patch)
tree65e331a7633cedb4acf4fcaf30bf52f23feabefd /rpmdrake.pm
parentdb87f64ed765e41155a75416c876cb86dcf49f85 (diff)
downloadrpmdrake-597b467c61498c0af85a1145f7897f14b4b38c5c.tar
rpmdrake-597b467c61498c0af85a1145f7897f14b4b38c5c.tar.gz
rpmdrake-597b467c61498c0af85a1145f7897f14b4b38c5c.tar.bz2
rpmdrake-597b467c61498c0af85a1145f7897f14b4b38c5c.tar.xz
rpmdrake-597b467c61498c0af85a1145f7897f14b4b38c5c.zip
(run_as_user) drop it (obsolete, feature merged and improved into
drakxtools' run_program.pm)
Diffstat (limited to 'rpmdrake.pm')
-rw-r--r--rpmdrake.pm10
1 files changed, 0 insertions, 10 deletions
diff --git a/rpmdrake.pm b/rpmdrake.pm
index 419d773a..7c78900a 100644
--- a/rpmdrake.pm
+++ b/rpmdrake.pm
@@ -80,7 +80,6 @@ our @EXPORT = qw(
myexit
readconf
remove_wait_msg
- run_as_user
run_drakbug
show_urpm_progress
slow_func
@@ -951,15 +950,6 @@ sub add_distrib_update_media {
);
}
-sub run_as_user {
- if (my $user = $ENV{USERHELPER_UID} && getpwuid($ENV{USERHELPER_UID})) {
- run_program::raw({ detach => 1 }, 'su', $user, '-c', join(' ', @_));
- } else {
- run_program::raw({ detach => 1 }, @_);
- }
-}
-
-
sub open_help {
my ($mode) = @_;
use run_program;