Commit 718deab3 authored by Luca Giambonini's avatar Luca Giambonini

move the lib32 detection logic from the library to the preparation script

parent 2a824749
......@@ -219,11 +219,6 @@ function get_repository() {
;;
esac
# if the project name is lib32 handle differently
if [[ $CI_PROJECT_NAME = *lib32* ]]
then
current_repo="lib32-$current_repo"
fi
echo "$current_repo"
}
......
......@@ -14,6 +14,13 @@ _do cp makepkg /usr/bin/makepkg
# determine the the repository where we should build against (stable|testing|staging)
repo_name=$(get_repository)
# if the project name is lib32 handle differently
if [[ $CI_PROJECT_NAME = *lib32* ]]
then
repo_name="lib32-$repo_name"
fi
_log command "Enabling [$repo_name] pacman.conf..."
_do wget "https://code.chakralinux.org/tools/chakrabuildsystem/raw/master/conf/$repo_name.conf"
_do cp $repo_name.conf /etc/pacman.conf
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment