Git-Url: 
http://git.frugalware.org/gitweb/gitweb.cgi?p=fwlive.git;a=commitdiff;h=d568aec8f89686cfdb0ace583c0ba02096fca865

commit d568aec8f89686cfdb0ace583c0ba02096fca865
Author: Janny <[EMAIL PROTECTED]>
Date:   Fri Feb 15 17:07:08 2008 +0100

fwlive patch set 8 from crazy
* check-tree need a extra check

diff --git a/Makefile b/Makefile
index 6dc6294..9e651b0 100644
--- a/Makefile
+++ b/Makefile
@@ -39,14 +39,20 @@ all: checkroot check-tree checkfiles chroot-mkdirs 
create-pkgdb cache-mount inst
@echo "Now burn your iso and have fun!"

check-tree:
-       source /etc/repoman.conf; \
-       grep -v Include /etc/pacman-g2.conf >${PACCONF}; \
-        echo "[fwlive_pkgs]" >> ${PACCONF}; \
-       echo "Server = 
http://ftp.frugalware.org/pub/other/people/janny/fwlive_pkgs/frugalware-i686/"; 
>> ${PACCONF}; \
-       if [ ${APPSGROUP} == "KDE4" ] ; then \
-               echo "[playground]" >> ${PACCONF}; \
-               echo "Server = 
http://ftp.frugalware.org/pub/other/people/crazy/playground/frugalware-i686/"; 
>> ${PACCONF}; \
+       if [ -e /etc/repoman.conf ]; then \
+               source /etc/repoman.conf; \
+               grep -v Include /etc/pacman-g2.conf >${PACCONF}; \
+               echo "[fwlive_pkgs]" >> ${PACCONF}; \
+               echo "Server = 
http://ftp.frugalware.org/pub/other/people/janny/fwlive_pkgs/frugalware-i686/"; 
>> ${PACCONF}; \
+               if [ ${APPSGROUP} == "KDE4" ] ; then \
+                       echo "[playground]" >> ${PACCONF}; \
+                       echo "Server = 
http://ftp.frugalware.org/pub/other/people/crazy/playground/frugalware-i686/"; 
>> ${PACCONF}; \
+               fi; \
+       else; \
+               @echo "Error: Cannot find repoman.conf , is pacman-tools 
installed ?"; \
+               exit 1; \
fi
+
for i in `echo ${TREE}|sed 's/,/ /g'`; do \
repo=$$(eval "echo \$${$${i}_fdb/.fdb}"); \
[ -z "$$repo" ] && repo="$$i"; \
_______________________________________________
Frugalware-git mailing list
[email protected]
http://frugalware.org/mailman/listinfo/frugalware-git

Reply via email to