diff options
author | Michael Scherer <misc@mageia.org> | 2011-04-15 12:37:29 +0000 |
---|---|---|
committer | Michael Scherer <misc@mageia.org> | 2011-04-15 12:37:29 +0000 |
commit | 97f18f7be92ae1cc344a77d58a8bf26e39f0db9f (patch) | |
tree | a1f56dc13d720980c7f009e5930561f98e26f4d9 | |
parent | 1401a8cad647d3517a4930770af14f09c7b79223 (diff) | |
download | iurt-97f18f7be92ae1cc344a77d58a8bf26e39f0db9f.tar iurt-97f18f7be92ae1cc344a77d58a8bf26e39f0db9f.tar.gz iurt-97f18f7be92ae1cc344a77d58a8bf26e39f0db9f.tar.bz2 iurt-97f18f7be92ae1cc344a77d58a8bf26e39f0db9f.tar.xz iurt-97f18f7be92ae1cc344a77d58a8bf26e39f0db9f.zip |
- remove dead code ( done by rpm/urpmi )
-rwxr-xr-x | iurt_root_command | 13 |
1 files changed, 0 insertions, 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 , "<chroot>", - "perform a rpm --initdb in the chroot.", - \&initdb, "Initializing the rpm database" ], - [ "v", "verbose", 1, "<verbose level>", "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; |