diff options
author | Pascal Rigaux <pixel@mandriva.com> | 2006-11-15 14:20:58 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 2006-11-15 14:20:58 +0000 |
commit | 47a7e619faf5d6fc358c319aeca322def85a5643 (patch) | |
tree | fd791184ab873725f7060cc405fc916d6df28001 /urpm.pm | |
parent | 52c3115f06e5b0aa0be626dcca9d52df3797e2b2 (diff) | |
download | urpmi-47a7e619faf5d6fc358c319aeca322def85a5643.tar urpmi-47a7e619faf5d6fc358c319aeca322def85a5643.tar.gz urpmi-47a7e619faf5d6fc358c319aeca322def85a5643.tar.bz2 urpmi-47a7e619faf5d6fc358c319aeca322def85a5643.tar.xz urpmi-47a7e619faf5d6fc358c319aeca322def85a5643.zip |
create write_urpmi_cfg() out of write_config()
Diffstat (limited to 'urpm.pm')
-rw-r--r-- | urpm.pm | 11 |
1 files changed, 8 insertions, 3 deletions
@@ -470,7 +470,7 @@ sub write_MD5SUM { } #- Writes the urpmi.cfg file. -sub write_config { +sub write_urpmi_cfg { my ($urpm) = @_; #- avoid trashing exiting configuration if it wasn't loaded @@ -492,14 +492,19 @@ sub write_config { urpm::cfg::dump_config($urpm->{config}, $config) or $urpm->{fatal}(6, N("unable to write config file [%s]", $urpm->{config})); - write_MD5SUM($urpm); - $urpm->{log}(N("wrote config file [%s]", $urpm->{config})); #- everything should be synced now. delete $urpm->{modified}; } +sub write_config { + my ($urpm) = @_; + + write_urpmi_cfg($urpm); + write_MD5SUM($urpm); +} + sub _configure_parallel { my ($urpm, $alias) = @_; my @parallel_options; |