mirror of
https://salsa.debian.org/images-team/debian-cd.git
synced 2024-11-24 15:19:51 -01:00
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
|
||||
# this script
|
||||
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;
|
||||
} else {
|
||||
die "update_tasks: Can't determine arch!\n";
|
||||
|
Loading…
Reference in New Issue
Block a user