Исправлен скрипт-обёртка для синхронизации layman`ом

master-3.5 3.5.1.5
parent 4deee242ee
commit e3b204f335

@ -1,7 +1,7 @@
#!/bin/bash #!/bin/bash
# если выполняется обновление уже полученного репозитория # если выполняется обновление уже полученного репозитория
if [[ $1 == "pull" ]] if [[ $1 == "pull" ]] || [[ $1 == "remote" ]]
then then
# получить название репозитория # получить название репозитория
if [[ -f profiles/repo_name ]] 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}, if echo $native_reps | grep -q ,${repo_name},
then then
# отбновить репозиторий через утилиты Calculate if [[ $1 == "pull" ]]
/usr/sbin/cl-core --method update --rep $repo_name --sync-only on --skip-eix-update -T none then
# отбновить репозиторий через утилиты Calculate
/usr/sbin/cl-core --method update --rep $repo_name --sync-only on --skip-eix-update -T none
fi
else else
# выполнить обновление через git # выполнить обновление через git
/usr/bin/git $* /usr/bin/git $*

Loading…
Cancel
Save