mirror of
				https://gitlab.archlinux.org/archlinux/devtools.git
				synced 2025-11-04 01:34:42 +01:00 
			
		
		
		
	Compare commits
	
		
			1 Commits
		
	
	
		
			10fe592862
			...
			refurbish-
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
| 
						 | 
					3c1229479c | 
@@ -22,16 +22,8 @@ elif [[ -r "$HOME/.makepkg.conf" ]]; then
 | 
				
			|||||||
fi
 | 
					fi
 | 
				
			||||||
 | 
					
 | 
				
			||||||
cmd=${0##*/}
 | 
					cmd=${0##*/}
 | 
				
			||||||
 | 
					rsyncopts=(-e ssh -p '--chmod=ug=rw,o=r' -c -h -L --progress --partial -y)
 | 
				
			||||||
if [[ ! -f PKGBUILD ]]; then
 | 
					archreleaseopts=()
 | 
				
			||||||
	die 'No PKGBUILD file'
 | 
					 | 
				
			||||||
fi
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
source=()
 | 
					 | 
				
			||||||
# shellcheck source=contrib/makepkg/PKGBUILD.proto
 | 
					 | 
				
			||||||
. ./PKGBUILD
 | 
					 | 
				
			||||||
pkgbase=${pkgbase:-$pkgname}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
case "$cmd" in
 | 
					case "$cmd" in
 | 
				
			||||||
	commitpkg)
 | 
						commitpkg)
 | 
				
			||||||
		if (( $# == 0 )); then
 | 
							if (( $# == 0 )); then
 | 
				
			||||||
@@ -47,7 +39,26 @@ case "$cmd" in
 | 
				
			|||||||
		die 'Usage: commitpkg <reponame> [-f] [-s server] [-l limit] [-a arch] [commit message]'
 | 
							die 'Usage: commitpkg <reponame> [-f] [-s server] [-l limit] [-a arch] [commit message]'
 | 
				
			||||||
		;;
 | 
							;;
 | 
				
			||||||
esac
 | 
					esac
 | 
				
			||||||
 | 
					while getopts ':l:a:s:f' flag; do
 | 
				
			||||||
 | 
						case $flag in
 | 
				
			||||||
 | 
							f) archreleaseopts+=('-f') ;;
 | 
				
			||||||
 | 
							s) server=$OPTARG ;;
 | 
				
			||||||
 | 
							l) rsyncopts+=("--bwlimit=$OPTARG") ;;
 | 
				
			||||||
 | 
							a) commit_arch=$OPTARG ;;
 | 
				
			||||||
 | 
							:) die "Option requires an argument -- '%s'" "$OPTARG" ;;
 | 
				
			||||||
 | 
							\?) die "Invalid option -- '%s'" "$OPTARG" ;;
 | 
				
			||||||
 | 
						esac
 | 
				
			||||||
 | 
					done
 | 
				
			||||||
 | 
					shift $(( OPTIND - 1 ))
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					if [[ ! -f PKGBUILD ]]; then
 | 
				
			||||||
 | 
						die 'No PKGBUILD file'
 | 
				
			||||||
 | 
					fi
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					source=()
 | 
				
			||||||
 | 
					# shellcheck source=contrib/makepkg/PKGBUILD.proto
 | 
				
			||||||
 | 
					. ./PKGBUILD
 | 
				
			||||||
 | 
					pkgbase=${pkgbase:-$pkgname}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
if (( ${#validpgpkeys[@]} != 0 )); then
 | 
					if (( ${#validpgpkeys[@]} != 0 )); then
 | 
				
			||||||
	if [[ -d keys ]]; then
 | 
						if [[ -d keys ]]; then
 | 
				
			||||||
@@ -88,20 +99,6 @@ if (( ${#needsversioning[*]} )); then
 | 
				
			|||||||
	(( ${#unversioned[*]} )) && die "%s is not under version control" "${unversioned[@]}"
 | 
						(( ${#unversioned[*]} )) && die "%s is not under version control" "${unversioned[@]}"
 | 
				
			||||||
fi
 | 
					fi
 | 
				
			||||||
 | 
					
 | 
				
			||||||
rsyncopts=(-e ssh -p '--chmod=ug=rw,o=r' -c -h -L --progress --partial -y)
 | 
					 | 
				
			||||||
archreleaseopts=()
 | 
					 | 
				
			||||||
while getopts ':l:a:s:f' flag; do
 | 
					 | 
				
			||||||
	case $flag in
 | 
					 | 
				
			||||||
		f) archreleaseopts+=('-f') ;;
 | 
					 | 
				
			||||||
		s) server=$OPTARG ;;
 | 
					 | 
				
			||||||
		l) rsyncopts+=("--bwlimit=$OPTARG") ;;
 | 
					 | 
				
			||||||
		a) commit_arch=$OPTARG ;;
 | 
					 | 
				
			||||||
		:) die "Option requires an argument -- '%s'" "$OPTARG" ;;
 | 
					 | 
				
			||||||
		\?) die "Invalid option -- '%s'" "$OPTARG" ;;
 | 
					 | 
				
			||||||
	esac
 | 
					 | 
				
			||||||
done
 | 
					 | 
				
			||||||
shift $(( OPTIND - 1 ))
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
# check packages for validity
 | 
					# check packages for validity
 | 
				
			||||||
for _arch in "${arch[@]}"; do
 | 
					for _arch in "${arch[@]}"; do
 | 
				
			||||||
	if [[ -n $commit_arch && ${_arch} != "$commit_arch" ]]; then
 | 
						if [[ -n $commit_arch && ${_arch} != "$commit_arch" ]]; then
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user