Compare commits

..

3 Commits

Author SHA1 Message Date
a3e6b17c5f deploypkg: add xz compat 2020-05-25 22:49:27 +02:00
21a37f6b00 buildtree: quote vars 2020-05-25 22:10:26 +02:00
80416b76d5 buildtree: fix import for new pkgs 2020-05-25 21:01:05 +02:00
2 changed files with 19 additions and 29 deletions

View File

@@ -113,9 +113,6 @@ show_deps(){
subrepo_new(){
cd ${TREE_DIR_ARTIX}/${GROUP}
msg2 "team: %s" "${TEAM}"
msg2 "group: %s" "${GROUP}"
local org=$(get_pkg_org "${PACKAGE}")
create_repo "${PACKAGE}" "$org"
@@ -139,20 +136,14 @@ from_arch(){
msg "repo: %s" "$repo"
local archpath=$srcpath/repos/$repo
local artixpath=$(find_pkg ${TREE_DIR_ARTIX} ${PACKAGE})
local artixpath=$(find_pkg "${TREE_DIR_ARTIX}" "${PACKAGE}")
show_deps "$archpath"
if [[ -f "$artixpath"/.gitrepo ]]; then
artixpath=$artixpath/trunk
if [[ -f $artixpath/PKGBUILD ]];then
. $artixpath/PKGBUILD 2>/dev/null
local artixver=$(get_full_version)
msg2 "Artix Version: %s" "$artixver"
artixpath="$artixpath"/trunk
if [[ -d "$artixpath" ]];then
sync_pkg "$archpath" "$artixpath"
patch_pkg "$artixpath"
fi
@@ -173,7 +164,7 @@ view_build(){
check_tree(){
local archpath=$(find_pkg "${TREE_DIR_ARCH}" "${PACKAGE}")
[[ -z $archpath ]] && die "Package '%s' does not exist!" "${PACKAGE}"
local artixpath=$(find_pkg "${TREE_DIR_ARTIX}" ${PACKAGE})
local artixpath=$(find_pkg "${TREE_DIR_ARTIX}" "${PACKAGE}")
local group=${artixpath%/*}
msg "group: %s" "${group##*/}"

View File

@@ -34,29 +34,28 @@ get_pkgbasename(){
}
add(){
packages+=("$pkg")
if [[ -e "${pkgfile}" ]]; then
action='add'
ln -sf "${pkgfile}"{,.sig} "$repo_path"/
fi
packages+=("$pkg.$ext")
action='add'
ln -sf "${pkgfile}"{,.sig} "$repo_path"/
}
remove(){
packages+=("$(get_pkgbasename "$pkg")")
if [[ -e "$repo_path"/"$pkg" ]]; then
action='remove'
rm "$repo_path"/"$pkg"
fi
[[ -e "$repo_path"/"$pkg".sig ]] && rm "$repo_path"/"$pkg".sig
local to_remove=$(get_pkgbasename "$pkg.$ext")
packages+=("$to_remove")
action='remove'
rm "$repo_path"/"$to_remove"*pkg.tar*
}
repo_action(){
local packages=() action= func="$1"
for pkg in ${passfiles[@]}; do
if pkgfile=$(find_cached_pkgfile "$pkg");then
msg "Found: %s" "${pkgfile}"
"$func"
fi
for pkgname in ${passfiles[@]}; do
pkg=${pkgname%.*}
for ext in zst xz;do
if pkgfile=$(find_cached_pkgfile "$pkg.$ext");then
msg "Found: %s" "${pkgfile}"
"$func"
fi
done
done
cd $repo_path
if [[ -n "$action" ]]; then