[Fai-commit] r6625 - trunk/lib
Thomas Lange
lange at alioth.debian.org
Thu Jul 21 08:08:06 UTC 2011
Author: lange
Date: 2011-07-21 08:08:06 +0000 (Thu, 21 Jul 2011)
New Revision: 6625
Modified:
trunk/lib/updatebase
Log:
load apt keys by class names
Modified: trunk/lib/updatebase
===================================================================
--- trunk/lib/updatebase 2011-07-21 07:58:41 UTC (rev 6624)
+++ trunk/lib/updatebase 2011-07-21 08:08:06 UTC (rev 6625)
@@ -9,8 +9,8 @@
echo "Updating base"
# add apt keys for signed repositories
-# TODO: add keys by using classes as file names
-for keyfile in `cd $FAI/package_config; ls *.asc 2>/dev/null`; do
+for keyfile in $classes; do
+ [ ! -f $FAI/package_config/$keyfile ] && continue
echo -n "Loading APT key from $keyfile "
cat $FAI/package_config/$keyfile | $ROOTCMD apt-key add -
done
More information about the Fai-commit
mailing list