install_packages and 'hold' in the PACKAGES

michael mmlogin at gmail.com
Thu Oct 7 20:12:49 CEST 2010


Hello,
Is it possible that the following is valid:

Index: bin/install_packages
===================================================================
--- bin/install_packages        (revision 6118)
+++ bin/install_packages        (working copy)
@@ -184,7 +184,7 @@
   my $packlist = join(' ',@{$list{$atype}});

   if ($atype eq "hold") {
-    my $hold = join " hold\n", @{$list{hold}}, " hold\n";
+    my $hold = join " hold\n", @{$list{hold}}, "";
     execute("echo \"$hold\" | $rootcmd $command{hold}");
     next;
   }

According to the "man dpkg" it seems that the last " hold\n" is unnecessary:

--set-selections
Set package selections using file read from stdin. This file should be
in the  format  ’<package>  <state>’,
where  state  is  one of install, hold, deinstall or purge. Blank
lines and comment lines beginning with ’#’
are also permitted.

Michael

mmlogin at gmail.com



More information about the linux-fai-devel mailing list