Fix MirrorList when set to disabled
This commit is contained in:
parent
bbaf583095
commit
8e4a7753d4
|
@ -13,13 +13,13 @@
|
|||
$OUT .= "enabled=" . (($repos->prop('status') eq 'enabled') ? 1 : 0)
|
||||
. "\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
|
||||
{
|
||||
$OUT .= 'baseurl=' . $props{BaseURL} . "\n";
|
||||
$OUT .= 'mirrorlist=' . $props{MirrorList} . "\n";
|
||||
}
|
||||
|
||||
for my $prop (qw(Name))
|
||||
|
|
Loading…
Reference in New Issue
Block a user