Salīdzināt revīzijas
3 Revīzijas
239668490e
...
5399276643
| Autors | SHA1 | Datums | |
|---|---|---|---|
| 5399276643 | |||
| 60603c087d | |||
| dc15e79942 |
19
installJRMC
19
installJRMC
@@ -16,7 +16,7 @@
|
|||||||
|
|
||||||
shopt -s extglob
|
shopt -s extglob
|
||||||
|
|
||||||
declare -g SCRIPT_VERSION="1.3.3-dev"
|
declare -g SCRIPT_VERSION="1.3.4-dev"
|
||||||
declare -g BOARD_URL="https://yabb.jriver.com/interact/index.php/board,86.0.html" # MC33
|
declare -g BOARD_URL="https://yabb.jriver.com/interact/index.php/board,86.0.html" # MC33
|
||||||
declare -g MC_VERSION="33.0.20" # Do find all replace
|
declare -g MC_VERSION="33.0.20" # Do find all replace
|
||||||
declare -g MC_DEFAULT_REPO="bullseye" # should match the MC_VERSION
|
declare -g MC_DEFAULT_REPO="bullseye" # should match the MC_VERSION
|
||||||
@@ -651,20 +651,27 @@ install_mc_repo() {
|
|||||||
acquire_deb() {
|
acquire_deb() {
|
||||||
debug "Running: ${FUNCNAME[0]}"
|
debug "Running: ${FUNCNAME[0]}"
|
||||||
|
|
||||||
declare -g MC_DEB="$OUTPUT_DIR/SOURCES/MediaCenter-$MC_VERSION-$ARCH.deb"
|
local fname="MediaCenter-$MC_VERSION-$ARCH.deb"
|
||||||
|
declare -g MC_DEB="$OUTPUT_DIR/SOURCES/$fname"
|
||||||
|
|
||||||
debug "MC_DEB=$MC_DEB"
|
debug "MC_DEB=$MC_DEB"
|
||||||
|
|
||||||
# If deb file already exists, skip download
|
# If deb file already exists, skip download
|
||||||
if [[ -f $MC_DEB ]]; then
|
if [[ -f $MC_DEB ]]; then
|
||||||
echo "Using existing DEB: $MC_DEB"
|
if [[ $(stat -c%s "$MC_DEB") -lt 10000000 ]]; then
|
||||||
|
echo "Removing existing DEB under 10MB: $MC_DEB"
|
||||||
|
execute rm "$MC_DEB"
|
||||||
|
else
|
||||||
|
echo "Using existing DEB: $MC_DEB"
|
||||||
|
fi
|
||||||
return 0
|
return 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Define the repositories to check
|
# Define the repositories to check
|
||||||
local repos=(
|
local repos=(
|
||||||
"https://files.jriver-cdn.com/mediacenter/channels/v$MVERSION/latest/MediaCenter-$MC_VERSION-$ARCH.deb"
|
"https://files.jriver-cdn.com/mediacenter/channels/v$MC_MVERSION/latest/$fname"
|
||||||
"https://files.jriver-cdn.com/mediacenter/test/MediaCenter-$MC_VERSION-$ARCH.deb"
|
"https://files.jriver-cdn.com/mediacenter/test/$fname"
|
||||||
"https://files.jriver-cdn.com/mediacenter/channels/v$MVERSION/beta/$BETAPASS/MediaCenter-$MC_VERSION-$ARCH.deb"
|
"https://files.jriver-cdn.com/mediacenter/channels/v$MC_MVERSION/beta/$BETAPASS/$fname"
|
||||||
)
|
)
|
||||||
|
|
||||||
# Loop through the repositories and attempt to download
|
# Loop through the repositories and attempt to download
|
||||||
|
|||||||
Atsaukties uz šo jaunā problēmā
Block a user