mirror of
ssh://git.janware.com/srv/git/janware/proj/jw-pkg
synced 2026-01-15 12:03:31 +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
|
||||
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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue