summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2006-11-15 14:20:58 +0000
committerPascal Rigaux <pixel@mandriva.com>2006-11-15 14:20:58 +0000
commit47a7e619faf5d6fc358c319aeca322def85a5643 (patch)
treefd791184ab873725f7060cc405fc916d6df28001
parent52c3115f06e5b0aa0be626dcca9d52df3797e2b2 (diff)
downloadurpmi-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()
-rw-r--r--urpm.pm11
1 files changed, 8 insertions, 3 deletions
diff --git a/urpm.pm b/urpm.pm
index 10b07806..37084522 100644
--- a/urpm.pm
+++ b/urpm.pm
@@ -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;