Git-Url: 
http://git.frugalware.org/gitweb/gitweb.cgi?p=pacman-g2.git;a=commitdiff;h=8a95a59b4ab60699eadfa7df99f292302d4b4fc3

commit 8a95a59b4ab60699eadfa7df99f292302d4b4fc3
Author: Miklos Vajna <vmik...@frugalware.org>
Date:   Thu Dec 23 14:28:35 2010 +0100

makepkg: fix warning when updating /etc/mtab in chroot

diff --git a/scripts/makepkg b/scripts/makepkg
index f277cfe..3a74ad7 100755
--- a/scripts/makepkg
+++ b/scripts/makepkg
@@ -1109,8 +1109,13 @@ if [ "$CHROOT" = "1" -a "$INCHROOT" != "1" ]; then
if [ -d ~/.pacman-g2/repos ]; then
cp -pf ~/.pacman-g2/repos/* $CHROOTDIR/etc/pacman-g2/repos >/dev/null
fi
+       # mtab can be removed once Frugalware-1.4 is out
for i in makepkg.conf resolv.conf passwd shadow group fstab mtab
do
+               if [ -h $CHROOTDIR/etc/$i ]; then
+                       # it's a symlink, don't touch it
+                       continue
+               fi
cp -pf /etc/$i $CHROOTDIR/etc >/dev/null
if [ -e $HOME/.$i ]; then
cp $HOME/.$i $CHROOTDIR/etc/$i >/dev/null
_______________________________________________
Frugalware-git mailing list
Frugalware-git@frugalware.org
http://frugalware.org/mailman/listinfo/frugalware-git

Reply via email to