avoid broken sources lists on bad config
git-svn-id: http://emdebian.org/svn/current@7123 563faec7-e20c-0410-992a-a66f704d0ccd
This commit is contained in:
parent
d41bdc76e2
commit
cb7d618a9f
1 changed files with 9 additions and 4 deletions
13
multistrap
13
multistrap
|
@ -260,11 +260,14 @@ foreach my $aptsrc (@debootstrap)
|
|||
$mirror = $sources{$aptsrc};
|
||||
$suite = $suites{$aptsrc};
|
||||
$component = (defined $components{$aptsrc}) ? $components{$aptsrc} : "main";
|
||||
print SOURCES<<END;
|
||||
if (defined $mirror and defined $suite)
|
||||
{
|
||||
print SOURCES<<END;
|
||||
deb $mirror $suite $component
|
||||
deb-src $mirror $suite $component
|
||||
END
|
||||
close SOURCES;
|
||||
close SOURCES;
|
||||
}
|
||||
}
|
||||
}
|
||||
my $k;
|
||||
|
@ -398,11 +401,13 @@ foreach my $aptsrc (@aptsources)
|
|||
$mirror = $sources{$aptsrc};
|
||||
$suite = $suites{$aptsrc};
|
||||
$component = (defined $components{$aptsrc}) ? $components{$aptsrc} : "main";
|
||||
print SOURCES<<END;
|
||||
if (defined $mirror and defined $suite)
|
||||
print SOURCES<<END;
|
||||
deb $mirror $suite $component
|
||||
deb-src $mirror $suite $component
|
||||
END
|
||||
close SOURCES;
|
||||
close SOURCES;
|
||||
}
|
||||
}
|
||||
}
|
||||
# altered the sources, so get apt to update.
|
||||
|
|
Loading…
Reference in a new issue