From 2b46d5bb72869e27cef7b5dfd502705583225301 Mon Sep 17 00:00:00 2001 From: Steven Chamberlain Date: Wed, 12 Apr 2017 20:05:15 +0100 Subject: [PATCH] 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-* --- tools/update_tasks | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/update_tasks b/tools/update_tasks index b9fe207a..03e03ac9 100755 --- a/tools/update_tasks +++ b/tools/update_tasks @@ -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";