From e3b204f335d6cfafc5d25c2c20521c2972129ace Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=A5=D0=B8=D1=80=D0=B5=D1=86=D0=BA=D0=B8=D0=B9=20=D0=9C?= =?UTF-8?q?=D0=B8=D1=85=D0=B0=D0=B8=D0=BB?= Date: Wed, 15 Feb 2017 16:32:25 +0300 Subject: [PATCH] =?UTF-8?q?=D0=98=D1=81=D0=BF=D1=80=D0=B0=D0=B2=D0=BB?= =?UTF-8?q?=D0=B5=D0=BD=20=D1=81=D0=BA=D1=80=D0=B8=D0=BF=D1=82-=D0=BE?= =?UTF-8?q?=D0=B1=D1=91=D1=80=D1=82=D0=BA=D0=B0=20=D0=B4=D0=BB=D1=8F=20?= =?UTF-8?q?=D1=81=D0=B8=D0=BD=D1=85=D1=80=D0=BE=D0=BD=D0=B8=D0=B7=D0=B0?= =?UTF-8?q?=D1=86=D0=B8=D0=B8=20layman`=D0=BE=D0=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- data/cl-git-wrapper | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/data/cl-git-wrapper b/data/cl-git-wrapper index 12d03b0..67de9f5 100755 --- a/data/cl-git-wrapper +++ b/data/cl-git-wrapper @@ -1,7 +1,7 @@ #!/bin/bash # если выполняется обновление уже полученного репозитория -if [[ $1 == "pull" ]] +if [[ $1 == "pull" ]] || [[ $1 == "remote" ]] then # получить название репозитория if [[ -f profiles/repo_name ]] @@ -20,8 +20,11 @@ native_reps=,$(/usr/libexec/calculate/cl-variable --value update.cl_update_rep_ # если обновляемый репозиторий от дистрибутива if echo $native_reps | grep -q ,${repo_name}, then - # отбновить репозиторий через утилиты Calculate - /usr/sbin/cl-core --method update --rep $repo_name --sync-only on --skip-eix-update -T none + if [[ $1 == "pull" ]] + then + # отбновить репозиторий через утилиты Calculate + /usr/sbin/cl-core --method update --rep $repo_name --sync-only on --skip-eix-update -T none + fi else # выполнить обновление через git /usr/bin/git $*