mirror of
ssh://git.janware.com/srv/git/janware/proj/jw-pkg
synced 2026-01-25 23:13:54 +01:00
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:
parent
1c010ddbb6
commit
375cbd39df
1 changed files with 7 additions and 2 deletions
|
|
@ -165,6 +165,10 @@ define increase_build_number
|
||||||
cvs commit -m "o $(RPM_VERSION)" HASH VERSION
|
cvs commit -m "o $(RPM_VERSION)" HASH VERSION
|
||||||
endef
|
endef
|
||||||
|
|
||||||
|
define check_reinstall_old
|
||||||
|
(make rpm-uninstall && make rpm-install)
|
||||||
|
endef
|
||||||
|
|
||||||
md5:
|
md5:
|
||||||
echo $(HASH) > HASH
|
echo $(HASH) > HASH
|
||||||
|
|
||||||
|
|
@ -175,8 +179,9 @@ rpm-update-release:
|
||||||
@if [ "`cat HASH`" != "$(HASH)" ]; then \
|
@if [ "`cat HASH`" != "$(HASH)" ]; then \
|
||||||
echo + source was modified ;\
|
echo + source was modified ;\
|
||||||
$(increase_build_number) ;\
|
$(increase_build_number) ;\
|
||||||
else \
|
elif ! $(check_reinstall_old); then \
|
||||||
echo + source is unmodified ;\
|
echo "+ old rpm is uninstallable" ;\
|
||||||
|
$(increase_build_number) ;\
|
||||||
fi
|
fi
|
||||||
|
|
||||||
rpm-check-release:
|
rpm-check-release:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue