Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
bc8f17cc86 | ||
|
|
1ceb6926e9 |
@@ -24,9 +24,6 @@ commit_pkg(){
|
|||||||
if [[ -n ${git_tree} ]];then
|
if [[ -n ${git_tree} ]];then
|
||||||
cd ${tree_dir_artix}/${git_tree}
|
cd ${tree_dir_artix}/${git_tree}
|
||||||
|
|
||||||
msg "Checking (%s)" "${git_tree}"
|
|
||||||
pull_tree
|
|
||||||
|
|
||||||
cd ${package}
|
cd ${package}
|
||||||
|
|
||||||
source trunk/PKGBUILD
|
source trunk/PKGBUILD
|
||||||
@@ -50,7 +47,11 @@ commit_pkg(){
|
|||||||
msg "Action: [%s] '%s' %s" "${source_repo}" "${package}-$ver" "${action}"
|
msg "Action: [%s] '%s' %s" "${source_repo}" "${package}-$ver" "${action}"
|
||||||
git add .
|
git add .
|
||||||
git commit -m "[${source_repo}] '${package}-$ver' ${action}"
|
git commit -m "[${source_repo}] '${package}-$ver' ${action}"
|
||||||
${push} && push_tree
|
if ${push};then
|
||||||
|
msg "Checking (%s)" "${git_tree}"
|
||||||
|
pull_tree
|
||||||
|
push_tree
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
error "Package '%s' does not exist!" "${package}"
|
error "Package '%s' does not exist!" "${package}"
|
||||||
@@ -62,9 +63,6 @@ symlink_commit_pkg(){
|
|||||||
if [[ -n ${git_tree} ]];then
|
if [[ -n ${git_tree} ]];then
|
||||||
cd ${tree_dir_artix}/${git_tree}
|
cd ${tree_dir_artix}/${git_tree}
|
||||||
|
|
||||||
msg "Checking (%s)" "${git_tree}"
|
|
||||||
pull_tree
|
|
||||||
|
|
||||||
cd ${package}
|
cd ${package}
|
||||||
|
|
||||||
source trunk/PKGBUILD
|
source trunk/PKGBUILD
|
||||||
@@ -75,10 +73,9 @@ symlink_commit_pkg(){
|
|||||||
local action='add'
|
local action='add'
|
||||||
local dest=${target_repo}-$CARCH
|
local dest=${target_repo}-$CARCH
|
||||||
|
|
||||||
|
[[ -d repos/$dest ]] && git rm -r repos/$dest
|
||||||
[[ ! -d repos ]] && mkdir repos
|
[[ ! -d repos ]] && mkdir repos
|
||||||
cd repos
|
|
||||||
[[ -d $dest ]] && git rm -r $dest
|
|
||||||
cd ..
|
|
||||||
cp -r trunk repos/$dest
|
cp -r trunk repos/$dest
|
||||||
else
|
else
|
||||||
local action='move'
|
local action='move'
|
||||||
@@ -93,7 +90,11 @@ symlink_commit_pkg(){
|
|||||||
msg "Action: [%s] -> [%s] '%s' %s" "${source_repo}" "${target_repo}" "${package}-$ver" "${action}"
|
msg "Action: [%s] -> [%s] '%s' %s" "${source_repo}" "${target_repo}" "${package}-$ver" "${action}"
|
||||||
git add .
|
git add .
|
||||||
git commit -m "[${source_repo}] -> [${target_repo}] '${package}-$ver' ${action}"
|
git commit -m "[${source_repo}] -> [${target_repo}] '${package}-$ver' ${action}"
|
||||||
${push} && push_tree
|
if ${push};then
|
||||||
|
msg "Checking (%s)" "${git_tree}"
|
||||||
|
pull_tree
|
||||||
|
push_tree
|
||||||
|
fi
|
||||||
else
|
else
|
||||||
error "Package '%s' does not exist!" "${package}"
|
error "Package '%s' does not exist!" "${package}"
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user