[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#691616: Workaround patch



The following patch is a workaround. Probably not a definitive solution
as it uses a 'find + exec cp' technique, which does one exec per file.
Works for me :)

V.
--- /usr/share/live/build/functions/cache.sh.orig	2012-10-27 21:44:58.955195762 +0200
+++ /usr/share/live/build/functions/cache.sh	2012-10-27 21:46:55.646751285 +0200
@@ -20,10 +20,10 @@
 			if [ "$(stat --printf %d ${DIRECTORY})" = "$(stat --printf %d chroot/var/cache/apt/archives)" ]
 			then
 				# with hardlinks
-				cp -fl "${DIRECTORY}"/*.deb chroot/var/cache/apt/archives
+				find "${DIRECTORY}" -name '*.deb' -exec 'cp -fl "{}" chroot/var/cache/apt/archives/' \;
 			else
 				# without hardlinks
-				cp "${DIRECTORY}"/*.deb chroot/var/cache/apt/archives
+				find "${DIRECTORY}" -name '*.deb' -exec 'cp "{}" chroot/var/cache/apt/archives/' \;
 			fi
 		fi
 	fi

Reply to: