Fix update_tasks on non-Linux arches
In the filename of the coreutils .deb, the architecture part may also contain a hyphen in the case of hurd-i386 or kfreebsd-*
This commit is contained in:
parent
d62734ee71
commit
2b46d5bb72
|
@ -44,7 +44,7 @@ if (defined($ENV{'FORCE_SID_TASKSEL'}) and $ENV{'FORCE_SID_TASKSEL'} eq '1') {
|
||||||
# is a non -all package) to determine a valid arch for the rest of
|
# is a non -all package) to determine a valid arch for the rest of
|
||||||
# this script
|
# this script
|
||||||
my $coreutils_deb = `$basedir/tools/which_deb $mirror $codename coreutils binary`;
|
my $coreutils_deb = `$basedir/tools/which_deb $mirror $codename coreutils binary`;
|
||||||
if ($coreutils_deb =~ m/_([[:alnum:]]+)\.deb/) {
|
if ($coreutils_deb =~ m/_([[:alnum:]-]+)\.deb/) {
|
||||||
$arch = $1;
|
$arch = $1;
|
||||||
} else {
|
} else {
|
||||||
die "update_tasks: Can't determine arch!\n";
|
die "update_tasks: Can't determine arch!\n";
|
||||||
|
|
Loading…
Reference in New Issue