mirror of https://git.wownero.com/dsc/mxe.git
improved "make update": revert a package's version number when there were download problem with the new version
This commit is contained in:
parent
3c74da9895
commit
c6af38e120
3
Makefile
3
Makefile
|
@ -209,7 +209,8 @@ define UPDATE
|
|||
$(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
|
||||
|
|
Loading…
Reference in New Issue