Commit e67bf692fa7e76a24734d19d5458fb51bb1f8922
1 parent
32814b0c
Exists in
master
and in
79 other branches
update package if already checked out
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
Makefile
@@ -12,6 +12,6 @@ obs_project = isv:spb:gitlab | @@ -12,6 +12,6 @@ obs_project = isv:spb:gitlab | ||
12 | upload: | 12 | upload: |
13 | test -n "$(PACKAGE)" | 13 | test -n "$(PACKAGE)" |
14 | mkdir -p obs | 14 | mkdir -p obs |
15 | - test -d obs/$(obs_project)/$(PACKAGE) || (cd obs && osc checkout $(obs_project) $(PACKAGE)) | 15 | + if test -d obs/$(obs_project)/$(PACKAGE); then (cd obs/$(obs_project)/$(PACKAGE) && osc update); else (cd obs && osc checkout $(obs_project) $(PACKAGE)); fi |
16 | cp $(PACKAGE).spec obs/isv:spb:gitlab/$(PACKAGE)/ | 16 | cp $(PACKAGE).spec obs/isv:spb:gitlab/$(PACKAGE)/ |
17 | cd obs/isv:spb:gitlab/$(PACKAGE) && osc commit -m 'Update $(PACKAGE)' | 17 | cd obs/isv:spb:gitlab/$(PACKAGE) && osc commit -m 'Update $(PACKAGE)' |