diff options
-rwxr-xr-x | iurt | 23 |
1 files changed, 12 insertions, 11 deletions
@@ -372,17 +372,6 @@ if ($run{repository}) { $config->{repository} = $run{repository}; } -if (!$config->{repository}) { - die "FATAL $program_name: no repository have been defined (use --repository to specify one on the command line"; -} - -my $urpmi = Iurt::Urpmi->new(run => \%run, config => $config, urpmi_options => "-v --no-verify-rpm --nolock --auto --no-suggests --ignoresize $config->{urpmi_options}"); -$run{urpmi} = $urpmi; - -if (!$run{chrooted_urpmi} && $run{group}) { - die "FATAL $program_name: option --chrooted-urpmi is mandatory if --group is selected"; -} - my %config_usage = ( admin => { desc => 'Mail of the administrator of packages builds', @@ -531,6 +520,18 @@ if ($run{config_usage}) { config_usage(\%config_usage, $config); exit; }; + +if (!$config->{repository}) { + die "FATAL $program_name: no repository have been defined (use --repository to specify one on the command line"; +} + +my $urpmi = Iurt::Urpmi->new(run => \%run, config => $config, urpmi_options => "-v --no-verify-rpm --nolock --auto --no-suggests --ignoresize $config->{urpmi_options}"); +$run{urpmi} = $urpmi; + +if (!$run{chrooted_urpmi} && $run{group}) { + die "FATAL $program_name: option --chrooted-urpmi is mandatory if --group is selected"; +} + $run{my_arch} or usage($program_name, \@params, "no architecture given (media $run{media}, run{my_arch} $run{my_arch}, todo", join(', ', @{$run{todo}})); if (!$arch_comp{$real_arch}{$run{my_arch}}) { die "FATAL $program_name: could not compile $run{my_arch} binaries on a $real_arch"; |