commitpkg: Pass through the -f parameter to archrelease so unofficial repos can be used
This commit is contained in:
parent
181646d03b
commit
502813a107
16
commitpkg.in
16
commitpkg.in
|
@ -42,7 +42,7 @@ pkgbase=${pkgbase:-$pkgname}
|
||||||
case "$cmd" in
|
case "$cmd" in
|
||||||
commitpkg)
|
commitpkg)
|
||||||
if (( $# == 0 )); then
|
if (( $# == 0 )); then
|
||||||
die 'usage: commitpkg <reponame> [-s server] [-l limit] [-a arch] [commit message]'
|
die 'usage: commitpkg <reponame> [-f] [-s server] [-l limit] [-a arch] [commit message]'
|
||||||
fi
|
fi
|
||||||
repo="$1"
|
repo="$1"
|
||||||
shift
|
shift
|
||||||
|
@ -51,7 +51,7 @@ case "$cmd" in
|
||||||
repo="${cmd%pkg}"
|
repo="${cmd%pkg}"
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
die 'usage: commitpkg <reponame> [-s server] [-l limit] [-a arch] [commit message]'
|
die 'usage: commitpkg <reponame> [-f] [-s server] [-l limit] [-a arch] [commit message]'
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
@ -74,11 +74,13 @@ for i in 'changelog' 'install'; do
|
||||||
done
|
done
|
||||||
|
|
||||||
rsyncopts=(-e ssh -p --chmod=ug=rw,o=r -c -h -L --progress --partial -y)
|
rsyncopts=(-e ssh -p --chmod=ug=rw,o=r -c -h -L --progress --partial -y)
|
||||||
while getopts ':l:a:s:' flag; do
|
archreleaseopts=()
|
||||||
|
while getopts ':l:a:s:f' flag; do
|
||||||
case $flag in
|
case $flag in
|
||||||
s) server=$2 ;;
|
f) archreleaseopts+=('-f') ;;
|
||||||
l) rsyncopts+=("--bwlimit=$2") ;;
|
s) server=$OPTARG ;;
|
||||||
a) commit_arch=$2 ;;
|
l) rsyncopts+=("--bwlimit=$OPTARG") ;;
|
||||||
|
a) commit_arch=$OPTARG ;;
|
||||||
:) die "Option requires an argument -- '$OPTARG'" ;;
|
:) die "Option requires an argument -- '$OPTARG'" ;;
|
||||||
\?) die "Invalid option -- '$OPTARG'" ;;
|
\?) die "Invalid option -- '$OPTARG'" ;;
|
||||||
esac
|
esac
|
||||||
|
@ -164,7 +166,7 @@ for _arch in ${arch[@]}; do
|
||||||
commit_arches+=($_arch)
|
commit_arches+=($_arch)
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
archrelease "${commit_arches[@]/#/$repo-}" || die
|
archrelease "${archreleaseopts[@]}" "${commit_arches[@]/#/$repo-}" || die
|
||||||
|
|
||||||
new_uploads=()
|
new_uploads=()
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue