[Patch] Checking /etc/apt/secring.gpg* before copying them
Hi,
Since /etc/apt/secring.gpg* do not always exist, it's better to check
before copying them. Otherwise live-build might stop running.
Attached please find the patch file.
My 2 cents.
Steven.
--
Steven Shiau <steven _at_ nchc org tw> <steven _at_ stevenshiau org>
National Center for High-performance Computing, Taiwan.
http://www.nchc.org.tw
Public Key Server PGP Key ID: 1024D/9762755A
Fingerprint: A2A1 08B7 C22C 3D06 34DB F4BC 08B3 E3D7 9762 755A
--- lb_chroot_archives.orig 2012-06-07 14:57:13.000000000 +0800
+++ lb_chroot_archives.new 2012-07-14 15:00:08.763376264 +0800
@@ -538,7 +538,10 @@
then
mkdir -p cache/indices.bootstrap
- cp -f chroot/etc/apt/secring.gpg* cache/indices.bootstrap
+ if Find_files chroot/etc/apt/secring.gpg*
+ then
+ cp -f chroot/etc/apt/secring.gpg* cache/indices.bootstrap
+ fi
cp -rf chroot/etc/apt/trusted.gpg* cache/indices.bootstrap
cp -f chroot/var/cache/apt/pkgcache.bin cache/indices.bootstrap
Reply to: