padre
47f2f6bd89
commit
1d3adc0e48
@ -0,0 +1,30 @@
|
||||
#!/bin/bash
|
||||
|
||||
# если выполняется обновление уже полученного репозитория
|
||||
if [[ $1 == "pull" ]]
|
||||
then
|
||||
# получить название репозитория
|
||||
if [[ -f profiles/repo_name ]]
|
||||
then
|
||||
repo_name=$(/bin/cat profiles/repo_name)
|
||||
else
|
||||
repo_name=$(/bin/basename `pwd`)
|
||||
fi
|
||||
elif [[ $1 == "clone" ]]
|
||||
then
|
||||
repo_name=$(/bin/basename $3)
|
||||
fi
|
||||
|
||||
# получить список репозиториев дистрибутива
|
||||
native_reps=,$(/usr/sbin/cl-core --method core_variables_show \
|
||||
--only-value update.cl_update_rep_name),
|
||||
# если обновляемый репозиторий от дистрибутива
|
||||
if echo $native_reps | grep -q ,${repo_name},
|
||||
then
|
||||
# отбновить репозиторий через утилиты Calculate
|
||||
/usr/sbin/cl-core --method update $repo_name --skip-update-metadata --skip-eix-update --update-rev=off
|
||||
else
|
||||
# выполнить обновление через git
|
||||
/usr/bin/git $*
|
||||
fi
|
||||
|
@ -0,0 +1,8 @@
|
||||
[install_man]
|
||||
install_dir=/usr/share
|
||||
|
||||
[install]
|
||||
install-scripts=/usr/bin
|
||||
|
||||
[install_data]
|
||||
install_dir=/
|
Cargando…
Referencia en una nueva incidencia