mirror of
https://gitlab.archlinux.org/archlinux/devtools.git
synced 2025-09-13 01:46:19 +02:00
Compare commits
5 Commits
Author | SHA1 | Date | |
---|---|---|---|
![]() |
ab5eb2e4de | ||
![]() |
a1a6a8eaca | ||
![]() |
6d4367de35 | ||
![]() |
5df1f9bd6d | ||
![]() |
9b33a29ea5 |
2
checkpkg
2
checkpkg
@@ -47,7 +47,7 @@ for _pkgname in ${pkgname[@]}; do
|
||||
exit 1
|
||||
fi
|
||||
|
||||
tmp=`pacman -Spd --noconfirm $_pkgname`
|
||||
tmp=`pacman -Spdd --noconfirm $_pkgname`
|
||||
|
||||
if [ $? -ne 0 ]; then
|
||||
echo "Couldn't download previous package for $_pkgname."
|
||||
|
14
commitpkg
14
commitpkg
@@ -54,7 +54,7 @@ pkgbase=${pkgbase:-$pkgname}
|
||||
case "$cmd" in
|
||||
commitpkg)
|
||||
if [ $# -eq 0 ]; then
|
||||
abort 'usage: commitpkg <reponame> [-l limit] [commit message]'
|
||||
abort 'usage: commitpkg <reponame> [-l limit] [-a arch] [commit message]'
|
||||
fi
|
||||
repo="$1"
|
||||
shift
|
||||
@@ -63,7 +63,7 @@ case "$cmd" in
|
||||
repo="${cmd%pkg}"
|
||||
;;
|
||||
*)
|
||||
abort 'usage: commitpkg <reponame> [-l limit] [commit message]'
|
||||
abort 'usage: commitpkg <reponame> [-l limit] [-a arch] [commit message]'
|
||||
;;
|
||||
esac
|
||||
|
||||
@@ -103,6 +103,11 @@ if [ "$1" = '-l' ]; then
|
||||
shift 2
|
||||
fi
|
||||
|
||||
if [ "$1" = "-a" ]; then
|
||||
commit_arch=$2
|
||||
shift 2
|
||||
fi
|
||||
|
||||
echo -n 'committing changes to trunk...'
|
||||
if [ -n "$1" ]; then
|
||||
svn commit -q -m "upgpkg: $pkgbase $pkgver-$pkgrel
|
||||
@@ -115,6 +120,11 @@ echo 'done'
|
||||
declare -a uploads
|
||||
|
||||
for _arch in ${arch[@]}; do
|
||||
if [ -n "$commit_arch" ] && [ "${_arch}" != "$commit_arch" ]; then
|
||||
echo "skipping ${_arch}"
|
||||
continue
|
||||
fi
|
||||
|
||||
for _pkgname in ${pkgname[@]}; do
|
||||
fullver=$(get_full_version ${epoch:-0} $pkgver $pkgrel)
|
||||
pkgfile=$(getpkgfile "$_pkgname-$fullver-${_arch}".pkg.tar.?z 2>/dev/null)
|
||||
|
@@ -73,7 +73,7 @@ if [ -z "$cache_dir" ]; then
|
||||
fi
|
||||
|
||||
if [ -f /etc/pacman.d/mirrorlist ]; then
|
||||
host_mirror=$(pacman -Sdp extra/devtools 2>/dev/null | sed -E 's#(.*/)extra/os/.*#\1$repo/os/$arch#')
|
||||
host_mirror=$(pacman -Sddp extra/devtools 2>/dev/null | sed -E 's#(.*/)extra/os/.*#\1$repo/os/$arch#')
|
||||
fi
|
||||
if [ -z "${host_mirror}" ]; then
|
||||
host_mirror='http://mirrors.kernel.org/archlinux/$repo/os/$arch'
|
||||
|
Reference in New Issue
Block a user