Compare commits

..

7 Commits
0.28 ... 0.28.2

Author SHA1 Message Date
02edf46d6a buildtree: set maintainer 2022-06-10 00:41:08 +02:00
860d2272ba buildtree: don't braid push ci 2022-06-09 01:26:01 +02:00
0d9e54c4e3 buildtree: braid push the ci fiiles 2022-06-09 00:09:37 +02:00
26bd425d55 buildtree: add func to set maintainer 2022-06-08 10:04:23 +02:00
c08f82044c commitpkg: only run braid update if push is success 2022-06-06 18:05:10 +02:00
74af21ca25 batchpkg: drop -u arg on move 2022-06-06 12:44:21 +02:00
e3b8439b04 commitpkg: fix update msg 2022-06-06 01:35:24 +02:00
4 changed files with 26 additions and 13 deletions

View File

@@ -28,9 +28,9 @@ batch_move() {
src=${src#*:}
local dest=${entry%%:*}
if ${runlist}; then
"${dest}"pkg -s "${src}" -u -p "${pkg}"
"${dest}"pkg -s "${src}" -p "${pkg}"
else
msg "%s" "${dest}pkg -s ${src} -u -p ${pkg}"
msg "%s" "${dest}pkg -s ${src} -p ${pkg}"
fi
done < "$pkglist"
}

View File

@@ -40,7 +40,11 @@ pkgrepo_new(){
prepare_dir "${TREE_DIR_ARTIX}/${group}/${package}/trunk"
commit_jenkins_files "${package}"
commit_ci "${package}"
# if braid push "${package}"; then
# braid update "${package}"
# fi
else
die "Package %s already exists!" "${package}"
fi
@@ -106,11 +110,20 @@ update_tree() {
#{{{ patch
set_maintainer() {
local name email path="$1"
name=$(git config --get user.name)
email=$(git config --get user.email)
sed -e "1s|Maintainer:.*|Maintainer: $name <$email>|" \
-i "$path"/PKGBUILD
}
patch_pkg(){
local pkgpath="$1"
local pkg=${pkgpath%/*}
pkg=${pkg##*/}
sed -e 's|arch-meson|artix-meson|' -i "$pkgpath"/PKGBUILD
set_maintainer "$pkgpath"
case $pkg in
glibc)
msg2 "Patching %s" "$pkg"

View File

@@ -133,15 +133,15 @@ run(){
msg "Checking (%s) (Artix)" "${tree##*/}"
pull_tree "${tree##*/}" "$head"
braid push "${package}"
braid update "${package}"
msg "Update (%s)" "${group##*/}"
git push origin master
git prune
[[ "${cmd}" != 'commitpkg' ]] && check_team
if braid push "${package}"; then
braid update "${package}"
msg "Update (%s)" "${tree##*/}"
git push origin master
git prune
[[ "${cmd}" != 'commitpkg' ]] && check_team
else
warning "'braid push %s' failed.\n" "${package}"
fi
else
die "Package '%s' does not exist!" "${package}"
fi

View File

@@ -31,7 +31,7 @@ write_agentyaml(){
git add "$agent"
}
commit_jenkins_files(){
commit_ci(){
local pkg="$1"
write_jenkinsfile "$pkg"