|
|
@ -13,13 +13,13 @@ |
|
|
|
$OUT .= "enabled=" . (($repos->prop('status') eq 'enabled') ? 1 : 0) |
|
|
|
$OUT .= "enabled=" . (($repos->prop('status') eq 'enabled') ? 1 : 0) |
|
|
|
. "\n"; |
|
|
|
. "\n"; |
|
|
|
|
|
|
|
|
|
|
|
if ( exists $props{MirrorList} ) |
|
|
|
if ( ! exists $props{MirrorList} or $props{MirrorList} eq "disabled" ) |
|
|
|
{ |
|
|
|
{ |
|
|
|
$OUT .= 'mirrorlist=' . $props{MirrorList} . "\n"; |
|
|
|
$OUT .= 'baseurl=' . $props{BaseURL} . "\n"; |
|
|
|
} |
|
|
|
} |
|
|
|
else |
|
|
|
else |
|
|
|
{ |
|
|
|
{ |
|
|
|
$OUT .= 'baseurl=' . $props{BaseURL} . "\n"; |
|
|
|
$OUT .= 'mirrorlist=' . $props{MirrorList} . "\n"; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
for my $prop (qw(Name)) |
|
|
|
for my $prop (qw(Name)) |
|
|
|