diff --git a/Makefile b/Makefile index 97d0c81..b994214 100644 --- a/Makefile +++ b/Makefile @@ -12,6 +12,6 @@ obs_project = isv:spb:gitlab upload: test -n "$(PACKAGE)" mkdir -p obs - test -d obs/$(obs_project)/$(PACKAGE) || (cd obs && osc checkout $(obs_project) $(PACKAGE)) + if test -d obs/$(obs_project)/$(PACKAGE); then (cd obs/$(obs_project)/$(PACKAGE) && osc update); else (cd obs && osc checkout $(obs_project) $(PACKAGE)); fi cp $(PACKAGE).spec obs/isv:spb:gitlab/$(PACKAGE)/ cd obs/isv:spb:gitlab/$(PACKAGE) && osc commit -m 'Update $(PACKAGE)' -- libgit2 0.21.2