common Makefile.common,1.104,1.105

Bill Nottingham (notting) fedora-extras-commits at redhat.com
Thu Jul 3 19:15:58 UTC 2008


Author: notting

Update of /cvs/extras/common
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv21087

Modified Files:
	Makefile.common 
Log Message:
Produce a more sensible error if there's no client to download the source
installed.



Index: Makefile.common
===================================================================
RCS file: /cvs/extras/common/Makefile.common,v
retrieving revision 1.104
retrieving revision 1.105
diff -u -r1.104 -r1.105
--- Makefile.common	2 Jul 2008 14:48:12 -0000	1.104
+++ Makefile.common	3 Jul 2008 19:15:27 -0000	1.105
@@ -197,6 +197,7 @@
 		break ; \
 	    fi ; \
 	done 
+	@if [ -z "$(CLIENT)" ]; then echo "Can't download, need curl or wget installed." ; exit 1; fi
 	@if [ ! -e "$@" ] ; then $(CLIENT) $(REPOSITORY)/$(NAME)/$@/$(get_sources_md5)/$@  ; fi
 	@if [ ! -e "$@" ] ; then echo "Could not download source file: $@ does not exist" ; exit 1 ; fi
 	@if test "$$(md5sum $@ | awk '{print $$1}')" != "$(get_sources_md5)" ; then \




More information about the scm-commits mailing list