]> git.proxmox.com Git - pve-firmware.git/commitdiff
assemble_firmware: warn about multiple files at once
authorFabian Grünbichler <f.gruenbichler@proxmox.com>
Fri, 9 Mar 2018 14:59:53 +0000 (15:59 +0100)
committerFabian Grünbichler <f.gruenbichler@proxmox.com>
Fri, 9 Mar 2018 15:28:32 +0000 (16:28 +0100)
assemble-firmware.pl

index 35cd7403491ee11e98560028954c33f4ab6ccee6..fc9baf20e8166c1f3299e955adaeb3c779896475 100755 (executable)
@@ -342,6 +342,8 @@ sub copy_fw {
 
 my $fwdone = {};
 
+my $error = 0;
+
 open(TMP, $fwlist);
 while(defined(my $line = <TMP>)) {
     chomp $line;
@@ -400,7 +402,9 @@ while(defined(my $line = <TMP>)) {
     if ($fw =~ m|/|) {
        next if $skip->{$fw};
 
-        die "unable to find firmware: $fw $mod\n";
+       warn "unable to find firmware: $fw $mod\n";
+       $error++;
+       next;
     }
 
     my $name = basename($fw);
@@ -432,8 +436,10 @@ while(defined(my $line = <TMP>)) {
     next if $skip->{$fw};
     next if $fw =~ m|^dvb-|;
 
-    die "unable to find firmware: $fw $mod\n";
+    warn "unable to find firmware: $fw $mod\n";
+    $error++;
+    next;
 }
 close(TMP);
 
-exit(0);
+exit($error);