DEB build scripts:

- make opensync extra dependency deprecated in R14.1 series
- update_repositories.sh will not mark a new package as UPDATE anymore.
This because when updating multiple branches, modules only present in
one branch would cause a lot of false UPDATE messages at each branch
switch.

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
pull/1/head
Michele Calgaro 6 years ago
parent b4c78632fd
commit 39219462db
Signed by: MicheleC
GPG Key ID: 2A75B7CA8ADED5CF

@ -12,7 +12,7 @@ else
build_module "edeps/gettext-kde"
build_module "edeps/fireflies"
build_module "edeps/imlib"
build_module "edeps/opensync"
# build_module "edeps/opensync" # deprecated - no longer required in R14.1 series. To remove in R14.2.0
build_module "edeps/libbeagle"
build_module "edeps/pcsc-lite-nodbus"
build_module "edeps/lcms"

@ -34,14 +34,14 @@ A) Environment preparation
4) Clone TDE git repositories
- TDE main repo
cd "TDE_DIR/1_git"
cd "$TDE_DIR/1_git"
git clone https://mirror.git.trinitydesktop.org/gitea/TDE/tde
cd tde
git submodule init -- scripts
git submodule update -- scripts
./scripts/switch_all_submodules_to_head_and_clean anonymous
- TDE packaging repo
cd "TDE_DIR/1_git"
cd "$TDE_DIR/1_git"
git clone https://mirror.git.trinitydesktop.org/gitea/TDE/tde-packaging
5) Add your user to the sudo group (not required if you are root)

@ -56,13 +56,11 @@ declare -A COLOR_STRINGS=(
# $1 - module folder
# $2 - operation type
# $3 - branch to update
# $4 - new branch flag (only for reporting)
function _do_update()
{
local MOD_PATH=$1
local OP_TYPE=$2
local BRANCH=$3
local NEW_BRANCH=$4
local RESULT=""
local LINE_CTRL_SUFFIX=""
@ -93,14 +91,12 @@ function _do_update()
fi
# Make sure the local branch exists
if [[ -z `git branch | grep -E "\b$BRANCH\b"` ]]; then
NEW_BRANCH="y"
eval git checkout -b \"$BRANCH\" \"origin/$BRANCH\" $OPT_VERBOSE_LOG
else
eval git checkout \"$BRANCH\" $OPT_VERBOSE_LOG
fi
# Make sure the local branch is a tracking branch
if [[ -z `git config branch."$BRANCH".remote` ]]; then
NEW_BRANCH="y"
git branch -u "origin/$BRANCH" &>/dev/null #$
git reset --hard "origin/$BRANCH" &>/dev/null
fi
@ -114,13 +110,9 @@ function _do_update()
else
RESULT="FAIL"
fi
else
if [[ "$NEW_BRANCH" = "y" ]]; then
RESULT="UPDATE"
else
RESULT="OK"
fi
fi
else
RESULT="FAIL"
fi
@ -156,7 +148,6 @@ function _do_update()
# $1 - module folder
# $2 - operation type
# $3 - branch to update
# $4 - new branch flag (only for reporting)
function _update_module()
{
local MOD_PATH=$1
@ -166,22 +157,18 @@ function _update_module()
# Current module
_do_update "$@"
# Submodules
local NEW_BRANCH="n"
local SUBMOD_LIST="$MOD_PATH/.gitmodules"
if [[ -e "$SUBMOD_LIST" ]]; then
sed -n "s|^\[submodule \"\([^\"]*\)\"\]$|\1|p" <$SUBMOD_LIST |\
while read -r SUBMOD_PATH; do
NEW_BRANCH="n"
cd "$MOD_PATH" &>/dev/null
if [[ -z "`git config --get submodule.$SUBMOD_PATH.url`" ]]; then
NEW_BRANCH="y" # if a submodule is missing, need to report "update" status
eval git submodule init -- \"$SUBMOD_PATH\" $OPT_VERBOSE_LOG
fi
if [[ ! -e "$MOD_PATH/$SUBMOD_PATH/.git" ]]; then
NEW_BRANCH="y" # if a submodule is incomplete, need to report "update" status
eval git submodule update -- \"$SUBMOD_PATH\" $OPT_VERBOSE_LOG
fi
_update_module "$MOD_PATH/$SUBMOD_PATH" "$OP_TYPE" "$BRANCH" "$NEW_BRANCH"
_update_module "$MOD_PATH/$SUBMOD_PATH" "$OP_TYPE" "$BRANCH"
done
fi
}
@ -238,10 +225,10 @@ if [[ "$flag_SWITCH_ONLY" != "y" ]]; then
echo_and_tee "${CLightCyan}---------------------------------------${CNone}" "$LOG_UPDATE_REPO_FILENAME"
# Update TDE main repository
_update_module "$REPO_TDE" "update" "$branch" "n"
_update_module "$REPO_TDE" "update" "$branch"
# Update TDE packaging repository
_update_module "$TDE_DIR/$CFG_GIT_DIR/tde-packaging" "update" "$branch" "n"
_update_module "$TDE_DIR/$CFG_GIT_DIR/tde-packaging" "update" "$branch"
echo -e "\033[2K"
echo "" >> "$LOG_UPDATE_REPO_FILENAME"
@ -255,10 +242,10 @@ if [[ "$DEFAULT_REPO_BRANCH" != "$_LAST_BRANCH" ]]; then
echo_and_tee "${CLightCyan}---------------------------------------${CNone}" "$LOG_UPDATE_REPO_FILENAME"
# Switch TDE main repository
_update_module "$REPO_TDE" "switch-to" "$DEFAULT_REPO_BRANCH" "n"
_update_module "$REPO_TDE" "switch-to" "$DEFAULT_REPO_BRANCH"
# Switch TDE packaging repository
_update_module "$TDE_DIR/$CFG_GIT_DIR/tde-packaging" "switch-to" "$DEFAULT_REPO_BRANCH" "n"
_update_module "$TDE_DIR/$CFG_GIT_DIR/tde-packaging" "switch-to" "$DEFAULT_REPO_BRANCH"
echo -e "\033[2K"
echo "" >> "$LOG_UPDATE_REPO_FILENAME"

Loading…
Cancel
Save