From e67bf692fa7e76a24734d19d5458fb51bb1f8922 Mon Sep 17 00:00:00 2001 From: Antonio Terceiro Date: Thu, 26 Feb 2015 14:20:10 -0300 Subject: [PATCH] update package if already checked out --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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