Package: fai-client
Version: 5.3.5
Severity: important
Tags: patch

Softupdates do not work in fai 5.3.5. You get an error message during
task_instsoft, "Undefined subroutine &main::insert called at
/usr/sbin/install_packages line 547.". If you edit that file and
change the subroutine call from insert to insert_pkg, it works.

This error will also appear if you have any package name appended by
a colon and the architecture.

Here's the fix for this.

diff --git a/bin/install_packages b/bin/install_packages
index 6a7505d..022f789 100755
--- a/bin/install_packages
+++ b/bin/install_packages
@@ -544,7 +544,7 @@ sub clean_pkg_list {
 
     # remove :arch from package name
     if ( $pack =~ s/:\S+//) {
-      insert($n, $pack, 1, "$n using $pack found") && next;
+      insert_pkg($n, $pack, 1, "$n using $pack found") && next;
     }
 
     # else package is unknown

-- 
regards Thomas

Reply via email to