[Debian-live-changes] r2404 - in dists/trunk/live-helper: docs helpers

otavio at alioth.debian.org otavio at alioth.debian.org
Thu Jul 5 20:31:43 UTC 2007


Author: otavio
Date: 2007-07-05 20:31:43 +0000 (Thu, 05 Jul 2007)
New Revision: 2404

Modified:
   dists/trunk/live-helper/docs/ChangeLog
   dists/trunk/live-helper/helpers/lh_chroot_local-hooks
Log:
lh_chroot_local-hooks: Avoid to run backup files.


Modified: dists/trunk/live-helper/docs/ChangeLog
===================================================================
--- dists/trunk/live-helper/docs/ChangeLog	2007-07-05 20:03:32 UTC (rev 2403)
+++ dists/trunk/live-helper/docs/ChangeLog	2007-07-05 20:31:43 UTC (rev 2404)
@@ -3,6 +3,8 @@
 	* helpers/lh_binary_rootfs:
 	  - Fix inverted logic error to detect when exclude the kernel
 	    from the squashfs image.
+	* helpers/lh_chroot_local-hooks:
+	  - Avoid to run backup files.
 
 2007-07-04  Otavio Salvador  <otavio at debian.org>
 

Modified: dists/trunk/live-helper/helpers/lh_chroot_local-hooks
===================================================================
--- dists/trunk/live-helper/helpers/lh_chroot_local-hooks	2007-07-05 20:03:32 UTC (rev 2403)
+++ dists/trunk/live-helper/helpers/lh_chroot_local-hooks	2007-07-05 20:31:43 UTC (rev 2404)
@@ -51,6 +51,12 @@
 then
 	for HOOK in config/chroot_local-hooks/*
 	do
+		# Avoid backup files
+		if echo "${HOOK}" | grep -q '~$'
+		then
+			continue
+		fi
+
 		# Copying hook
 		cp "${HOOK}" chroot/root
 




More information about the Debian-live-changes mailing list