rpmdist.mk: Automation: Check if old RPM is installable

Check if old rpm is installable before deciding not to increase build
number.
This commit is contained in:
Jan Lindemann 2007-09-02 15:27:50 +00:00 committed by Jan Lindemann
commit 375cbd39df

View file

@ -165,6 +165,10 @@ define increase_build_number
cvs commit -m "o $(RPM_VERSION)" HASH VERSION
endef
define check_reinstall_old
(make rpm-uninstall && make rpm-install)
endef
md5:
echo $(HASH) > HASH
@ -175,8 +179,9 @@ rpm-update-release:
@if [ "`cat HASH`" != "$(HASH)" ]; then \
echo + source was modified ;\
$(increase_build_number) ;\
else \
echo + source is unmodified ;\
elif ! $(check_reinstall_old); then \
echo "+ old rpm is uninstallable" ;\
$(increase_build_number) ;\
fi
rpm-check-release: