Compare commits
10 Commits
Author | SHA1 | Date | |
---|---|---|---|
3e7c4e371c | |||
8dbd07ff55 | |||
d88ede3984 | |||
04a1da9dd9 | |||
7eb70fcf2b | |||
16207221dc | |||
daf58430a9 | |||
8b32e346f6 | |||
8df5a87738 | |||
e2dbe82949 |
@@ -84,7 +84,7 @@ show_version_table(){
|
|||||||
fi
|
fi
|
||||||
if ${artix};then
|
if ${artix};then
|
||||||
if [ $(vercmp "$artixver" "$archver") -eq 0 ] || [ $(vercmp "$artixver" "$archver") -gt 0 ];then
|
if [ $(vercmp "$artixver" "$archver") -eq 0 ] || [ $(vercmp "$artixver" "$archver") -gt 0 ];then
|
||||||
local ar=$(arch_to_artix_repo "$artixrepo")
|
local ar=$(find_artix_name "$artixrepo")
|
||||||
case $ar in
|
case $ar in
|
||||||
*goblins)
|
*goblins)
|
||||||
if [[ "$archrepo" == "$artixrepo" ]];then
|
if [[ "$archrepo" == "$artixrepo" ]];then
|
||||||
@@ -104,11 +104,11 @@ show_version_table(){
|
|||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
if [ $(vercmp "$artixver" "$archver") -lt 0 ];then
|
if [ $(vercmp "$artixver" "$archver") -lt 0 ];then
|
||||||
local ar=$(arch_to_artix_repo "$artixrepo")
|
local ar=$(find_artix_name "$artixrepo")
|
||||||
${upgrades} && msg_row_upgrade "%-20s %-20s %-25s %-30s %-30s" "${archrepo%-*}" "${ar}" "$pkg" "$archver" "$artixver"
|
${upgrades} && msg_row_upgrade "%-20s %-20s %-25s %-30s %-30s" "${archrepo%-*}" "${ar}" "$pkg" "$archver" "$artixver"
|
||||||
fi
|
fi
|
||||||
if [ $(vercmp "$artixver" "$archver") -gt 0 ];then
|
if [ $(vercmp "$artixver" "$archver") -gt 0 ];then
|
||||||
local ar=$(arch_to_artix_repo "$artixrepo")
|
local ar=$(find_artix_name "$artixrepo")
|
||||||
if [[ -n $archver ]] && [[ -n $archrepo ]];then
|
if [[ -n $archver ]] && [[ -n $archrepo ]];then
|
||||||
${downgrades} && msg_row_downgrade "%-20s %-20s %-25s %-30s %-30s" "${archrepo%-*}" "${ar}" "$pkg" "$archver" "$artixver"
|
${downgrades} && msg_row_downgrade "%-20s %-20s %-25s %-30s %-30s" "${archrepo%-*}" "${ar}" "$pkg" "$archver" "$artixver"
|
||||||
fi
|
fi
|
||||||
|
@@ -18,8 +18,7 @@ SYSCONFDIR='@sysconfdir@'
|
|||||||
import ${LIBDIR}/util.sh
|
import ${LIBDIR}/util.sh
|
||||||
|
|
||||||
connect(){
|
connect(){
|
||||||
local home="/home/frs/project/${PROJECT}"
|
echo "${ACCOUNT}@${FILE_HOST}:${FILE_HOME}"
|
||||||
echo "${ACCOUNT},${PROJECT}@frs.${FILE_HOST}:${home}"
|
|
||||||
}
|
}
|
||||||
|
|
||||||
prepare_transfer(){
|
prepare_transfer(){
|
||||||
@@ -48,8 +47,6 @@ display_settings(){
|
|||||||
|
|
||||||
msg "REMOTE:"
|
msg "REMOTE:"
|
||||||
msg2 "ACCOUNT: %s" "${ACCOUNT}"
|
msg2 "ACCOUNT: %s" "${ACCOUNT}"
|
||||||
msg2 "FILE_HOST: %s" "${FILE_HOST}"
|
|
||||||
msg2 "PROFILE: %s" "${PROJECT}"
|
|
||||||
|
|
||||||
msg "UPLOAD:"
|
msg "UPLOAD:"
|
||||||
msg2 "SRC_DIR: ${SRC_DIR}"
|
msg2 "SRC_DIR: ${SRC_DIR}"
|
||||||
@@ -64,7 +61,7 @@ pretend=false
|
|||||||
update=false
|
update=false
|
||||||
verbose=false
|
verbose=false
|
||||||
|
|
||||||
rsync_args=(-aP --progress -e ssh)
|
rsync_args=(-aP --progress -e "ssh -p ${FILE_PORT}")
|
||||||
|
|
||||||
usage() {
|
usage() {
|
||||||
echo "Usage: ${0##*/} [options]"
|
echo "Usage: ${0##*/} [options]"
|
||||||
|
@@ -41,10 +41,5 @@
|
|||||||
# set upload bandwidth limit in kB/s
|
# set upload bandwidth limit in kB/s
|
||||||
# UPLIMIT=1000
|
# UPLIMIT=1000
|
||||||
|
|
||||||
# FILE_HOST="sourceforge.net"
|
|
||||||
|
|
||||||
# the server user
|
# the server user
|
||||||
# ACCOUNT=[SetUser]
|
# ACCOUNT=[SetUser]
|
||||||
|
|
||||||
# the server project
|
|
||||||
# PROJECT="artix-linux"
|
|
||||||
|
@@ -16,12 +16,12 @@ subrepo_init(){
|
|||||||
|
|
||||||
subrepo_push(){
|
subrepo_push(){
|
||||||
local pkg="$1" branch=master
|
local pkg="$1" branch=master
|
||||||
git subrepo push "$pkg" -u -b "$branch"
|
git subrepo push "$pkg" -u -b "$branch" --clean
|
||||||
}
|
}
|
||||||
|
|
||||||
subrepo_pull(){
|
subrepo_pull(){
|
||||||
local pkg="$1" name="${2:-$1}" branch=master org=packages
|
local pkg="$1" name="${2:-$1}" branch=master org=packages
|
||||||
git subrepo pull "$pkg" -r gitea@"${GIT_DOMAIN}":"$org"/"$name".git -u -b "$branch"
|
git subrepo pull "$pkg" -r gitea@"${GIT_DOMAIN}":"$org"/"$name".git -u -b "$branch" #--clean
|
||||||
}
|
}
|
||||||
|
|
||||||
subrepo_clone(){
|
subrepo_clone(){
|
||||||
|
@@ -139,16 +139,13 @@ find_repo(){
|
|||||||
$unst && repos+=(gnome-unstable kde-unstable)
|
$unst && repos+=(gnome-unstable kde-unstable)
|
||||||
|
|
||||||
for r in ${repos[@]};do
|
for r in ${repos[@]};do
|
||||||
if [[ -f $pkg/repos/$r-x86_64/PKGBUILD ]];then
|
[[ -f $pkg/repos/$r-x86_64/PKGBUILD ]] && repo=$r-x86_64
|
||||||
repo=$r-x86_64
|
[[ -f $pkg/repos/$r-any/PKGBUILD ]] && repo=$r-any
|
||||||
elif [[ -f $pkg/repos/$r-any/PKGBUILD ]];then
|
|
||||||
repo=$r-any
|
|
||||||
fi
|
|
||||||
done
|
done
|
||||||
echo $repo
|
echo $repo
|
||||||
}
|
}
|
||||||
|
|
||||||
arch_to_artix_repo(){
|
find_artix_name(){
|
||||||
local repo="$1"
|
local repo="$1"
|
||||||
case $repo in
|
case $repo in
|
||||||
core-*) repo=system ;;
|
core-*) repo=system ;;
|
||||||
|
14
lib/util.sh
14
lib/util.sh
@@ -60,7 +60,9 @@ init_artools_base(){
|
|||||||
|
|
||||||
init_artools_pkg(){
|
init_artools_pkg(){
|
||||||
|
|
||||||
GIT_DOMAIN='gitea.artixlinux.org'
|
DOMAIN='artixlinux.org'
|
||||||
|
|
||||||
|
GIT_DOMAIN="gitea.${DOMAIN}"
|
||||||
|
|
||||||
GIT_URL="https://${GIT_DOMAIN}"
|
GIT_URL="https://${GIT_DOMAIN}"
|
||||||
|
|
||||||
@@ -68,7 +70,7 @@ init_artools_pkg(){
|
|||||||
|
|
||||||
[[ -z ${TREE_DIR_ARTIX} ]] && TREE_DIR_ARTIX="${WORKSPACE_DIR}/artix"
|
[[ -z ${TREE_DIR_ARTIX} ]] && TREE_DIR_ARTIX="${WORKSPACE_DIR}/artix"
|
||||||
|
|
||||||
[[ -z ${HOST_TREE_ARTIX} ]] && HOST_TREE_ARTIX="gitea@gitea.artixlinux.org:artix"
|
[[ -z ${HOST_TREE_ARTIX} ]] && HOST_TREE_ARTIX="gitea@${GIT_DOMAIN}:artix"
|
||||||
|
|
||||||
[[ -z ${TREE_DIR_ARCH} ]] && TREE_DIR_ARCH="${WORKSPACE_DIR}/archlinux"
|
[[ -z ${TREE_DIR_ARCH} ]] && TREE_DIR_ARCH="${WORKSPACE_DIR}/archlinux"
|
||||||
|
|
||||||
@@ -96,11 +98,13 @@ init_artools_iso(){
|
|||||||
|
|
||||||
[[ -z ${UPLIMIT} ]] && UPLIMIT=1000
|
[[ -z ${UPLIMIT} ]] && UPLIMIT=1000
|
||||||
|
|
||||||
[[ -z ${FILE_HOST} ]] && FILE_HOST="sourceforge.net"
|
FILE_HOST="download.${DOMAIN}"
|
||||||
|
|
||||||
[[ -z ${PROJECT} ]] && PROJECT="artix-linux"
|
[[ -z ${FILE_HOME} ]] && FILE_HOME="/srv/iso"
|
||||||
|
|
||||||
[[ -z ${ACCOUNT} ]] && ACCOUNT="[SetUser]"
|
[[ -z ${FILE_PORT} ]] && FILE_PORT=65432
|
||||||
|
|
||||||
|
[[ -z ${ACCOUNT} ]] && ACCOUNT="naughtyISOuploader"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user