summaryrefslogtreecommitdiffstats
path: root/urpm/cfg.pm
diff options
context:
space:
mode:
Diffstat (limited to 'urpm/cfg.pm')
-rw-r--r--urpm/cfg.pm14
1 files changed, 8 insertions, 6 deletions
diff --git a/urpm/cfg.pm b/urpm/cfg.pm
index 47761fec..23eab196 100644
--- a/urpm/cfg.pm
+++ b/urpm/cfg.pm
@@ -222,11 +222,7 @@ sub dump_config_raw {
substitute_back($m->{$field}, $prev_block && $prev_block->{$field});
};
- open my $f, '>', $file or do {
- $err = N("unable to write config file [%s]", $file);
- return 0;
- };
-
+ my @lines;
foreach my $m (@$blocks) {
my @l = map {
if (/^(update|ignore|synthesis|noreconfigure|static|virtual)$/) {
@@ -241,8 +237,14 @@ sub dump_config_raw {
my $name_url = $m->{name} ?
join(' ', map { quotespace($_) } $m->{name}, $substitute_back->($m, 'url')) . ' ' : '';
- print $f $name_url . "{\n", (map { " $_\n" } @l), "}\n\n";
+ push @lines, join("\n", $name_url . '{', (map { " $_" } @l), "}\n");
}
+
+ output_safe($file, join("\n", @lines)) or do {
+ $err = N("unable to write config file [%s]", $file);
+ return 0;
+ };
+
1;
}
7-08-211-14/+12 * updateThierry Vignaud2007-08-211-11/+8 * sync with codeThierry Vignaud2007-08-2171-2543/+2898 * Japanese translation updated.Yukiko Bando2007-08-171-2/+2 * Updated Estonian translation.Marek Laane2007-08-141-2/+2 * Update fr translationChristophe Berthelé2007-08-121-54/+18 * Updated Norwegian Nynorsk translation.Karl Ove Hufthammer2007-08-121-53/+29 * New translations.Mashrab Kuvatov2007-08-112-194/+129 * typo fix (Dotan Kamber)Thierry Vignaud2007-08-0971-71/+71 * typo fixThierry Vignaud2007-08-0971-71/+71 * updateThierry Vignaud2007-08-091-3/+3 * sync with codeThierry Vignaud2007-08-0971-233/+670 * update translation for HebrewDotan Kamber2007-08-081-78/+40 * update translation for basque (euskara)Iñigo Salvador Azurmendi2007-08-081-99/+103 * update translation for basque (euskara)Iñigo Salvador Azurmendi2007-08-081-164/+61 * Updated Estonian translation.Marek Laane2007-08-071-92/+71 * Japanese translation updated.Yukiko Bando2007-08-071-66/+79 * nl.po: Updated Dutch translationReinout van Schouwen2007-08-061-64/+74 * Updated Norwegian Nynorsk translation.Karl Ove Hufthammer2007-08-061-62/+41 * updateThierry Vignaud2007-08-061-11/+11 * updateThierry Vignaud2007-08-061-64/+58 * sync with codeThierry Vignaud2007-08-0671-17214/+20754 * update translation for HebrewDotan Kamber2007-08-031-9/+10 * Updated Norwegian Nynorsk translation.Karl Ove Hufthammer2007-08-021-2/+2 * Updated Norwegian Nynorsk translation.Karl Ove Hufthammer2007-08-021-105/+83 * update translation for HebrewDotan Kamber2007-08-011-105/+59 * update a stringThierry Vignaud2007-07-3071-142/+142 * sync with codeThierry Vignaud2007-07-3071-6653/+8065 * updateJosé Melo2007-07-231-66/+36 * update translation for HebrewDotan Kamber2007-07-211-2/+2 * Updated Norwegian Nynorsk translation.Karl Ove Hufthammer2007-07-171-50/+78 * update translation for HebrewDotan Kamber2007-07-161-42/+25 * Update fr translationChristophe Berthelé2007-07-081-4/+4 * Updated zh_CN translationFunda Wang2007-07-011-3/+3 * Updated POT fileFunda Wang2007-07-0171-23803/+24239 * updated translationPavel Maryanov2007-06-161-76/+33 * fixing some fuzzy entries and translating messages to pt_BRFelipe Arruda2007-05-211-73/+42 * Japanese translation reviewedYukiko Bando2007-05-151-8/+8 * upJosé Melo2007-05-071-92/+60 * re-sync after the big svn lossPascal Rigaux2007-04-25