Commit 7430f5d2 authored by AlmAck's avatar AlmAck
Browse files

calling pacman -Syyu at the beginning is not properly correct because we may...

calling pacman -Syyu at the beginning is not properly correct because we may miss some updates coming from the selected respository (testing).
Moved the full update at the end
parent 1a666034
......@@ -2,16 +2,6 @@
SCRIPT_DIR=$( dirname $( readlink -e $0 ) )
source "$SCRIPT_DIR/lib/ci-library.sh"
# resync database and update with latest changes
# do it before we change the makepkg file to avoid
# troubles if pacman is being updated (makepkg overwritten)
_do pacman -Syyu --noconfirm
# patch current makepkg with chakra custom mods
_log command "Patching makepkg..."
_do wget https://code.chakralinux.org/tools/chakrabuildsystem/raw/master/chakra/bin/makepkg
_do cp makepkg /usr/bin/makepkg
# determine the the repository where we should build against (stable|testing|staging)
repo_name=$(get_repository)
......@@ -61,6 +51,14 @@ PACKAGER=\"$GITLAB_USER_LOGIN <$GITLAB_USER_EMAIL>\"" > /home/builder/.makepkg.c
# resync with local database
_do pacman -Sy
_do pacman -Syyu --noconfirm
# patch current makepkg with chakra custom mods
# done at the end of the script to avoid
# troubles if pacman is being updated (makepkg overwritten)
_log command "Patching makepkg..."
_do wget https://code.chakralinux.org/tools/chakrabuildsystem/raw/master/chakra/bin/makepkg
_do cp makepkg /usr/bin/makepkg
# install additional packages required by the gitlab-ci-scripts
_do pacman -S --noconfirm python2
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