From 97f18f7be92ae1cc344a77d58a8bf26e39f0db9f Mon Sep 17 00:00:00 2001 From: Michael Scherer Date: Fri, 15 Apr 2011 12:37:29 +0000 Subject: - remove dead code ( done by rpm/urpmi ) --- iurt_root_command | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/iurt_root_command b/iurt_root_command index 28c1394..417ebc8 100755 --- a/iurt_root_command +++ b/iurt_root_command @@ -108,10 +108,6 @@ $run{todo} = []; "Remove files", \&rm, "Removing files" ], - [ "", "initdb", 1 , "", - "perform a rpm --initdb in the chroot.", - \&initdb, "Initializing the rpm database" ], - [ "v", "verbose", 1, "", "modprobe try to modprobe the given module if authorized.", sub { $run{verbose} = $_[0]; 1 }, "Setting verbose level" ], @@ -234,15 +230,6 @@ sub mkdir { 1; } -sub initdb { - my ($_run, $chroot) = @_; - if (-d $chroot && $chroot !~ /chroot|unionfs/) { - plog('FAIL', "rpm --initdb not authorized in $chroot"); - return 0; - } - !system('rpm', '--initdb', '--root', $chroot); -} - sub rm { my ($_run, $opt, @files) = @_; my $ok = 1; -- cgit v1.2.1