changeset 517:80db96994441

improved "make update": revert a package's version number when there were download problem with the new version
author Volker Grabsch <vog@notjusthosting.com>
date Wed, 28 Oct 2009 03:23:28 +0100
parents 7454cb5a253e
children 7f6a2f90a32c
files Makefile
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/Makefile	Wed Oct 28 03:01:41 2009 +0100
+++ b/Makefile	Wed Oct 28 03:23:28 2009 +0100
@@ -209,7 +209,8 @@
                 $(info .        $(1)  $(2)),
                 $(info NEW      $(1)  $($(1)_VERSION) --> $(2))
                 $(SED) 's/^\([^ ]*_VERSION *:=\).*/\1 $(2)/' -i '$(TOP_DIR)/src/$(1).mk'
-                $(MAKE) -f '$(MAKEFILE)' 'update-checksum-$(1)')),
+                $(MAKE) -f '$(MAKEFILE)' 'update-checksum-$(1)' \
+                    || $(SED) 's/^\([^ ]*_VERSION *:=\).*/\1 $($(1)_VERSION)/' -i '$(TOP_DIR)/src/$(1).mk')),
         $(error Unable to update version number: $(1)))
 
 endef