mirror of
				https://gitlab.archlinux.org/archlinux/devtools.git
				synced 2025-10-31 15:54:43 +01:00 
			
		
		
		
	Compare commits
	
		
			4 Commits
		
	
	
		
			mr-origin-
			...
			d146be72a3
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
|   | d146be72a3 | ||
|   | 01757e6904 | ||
|   | c5fe8ff3e6 | ||
|   | 19728506e3 | 
| @@ -116,6 +116,9 @@ copy_hostconf () { | ||||
| 		cp "$makepkg_conf" "$working_dir/etc/makepkg.conf" | ||||
| 		if [[ -d "${makepkg_conf}.d" ]] && is_globfile "${makepkg_conf}.d"/*.conf; then | ||||
| 			mkdir --parents "$working_dir/etc/makepkg.conf.d/" | ||||
| 			if is_globfile "$working_dir/etc/makepkg.conf.d"/*.conf; then | ||||
| 				rm --force "$working_dir/etc/makepkg.conf.d"/*.conf | ||||
| 			fi | ||||
| 			cp "${makepkg_conf}.d/"*.conf "$working_dir/etc/makepkg.conf.d/" | ||||
| 		fi | ||||
| 	fi | ||||
|   | ||||
| @@ -155,7 +155,7 @@ if (( ${#needsversioning[*]} )); then | ||||
| 		if [[ ! -f "${file}" ]]; then | ||||
| 			continue | ||||
| 		fi | ||||
| 		if ! git ls-files --error-unmatch "$file"; then | ||||
| 		if ! git ls-files --error-unmatch "$file" >/dev/null; then | ||||
| 			die "%s is not under version control" "$file" | ||||
| 		fi | ||||
| 	done | ||||
|   | ||||
| @@ -94,19 +94,19 @@ pkgctl_license_check() { | ||||
| 		pushd "${path}" >/dev/null | ||||
|  | ||||
| 		if [[ ! -f PKGBUILD ]]; then | ||||
| 			msg_error "${BOLD}${path}:${ALL_OFF} no PKGBUILD found" | ||||
| 			msg_error "${BOLD}${pkgbase}:${ALL_OFF} no PKGBUILD found" | ||||
| 			return 1 | ||||
| 		fi | ||||
|  | ||||
| 		if [[ ! -f .SRCINFO ]]; then | ||||
| 			msg_error "${BOLD}${path}:${ALL_OFF} no .SRCINFO found" | ||||
| 			return 1 | ||||
| 		fi | ||||
| 		# reset common PKGBUILD variables | ||||
| 		unset pkgbase | ||||
|  | ||||
| 		if ! pkgbase=$(grep --max-count=1 --extended-regexp "pkgbase = (.+)" .SRCINFO | awk '{print $3}'); then | ||||
| 			msg_error "${BOLD}${path}:${ALL_OFF} pkgbase not found in .SRCINFO" | ||||
| 		# shellcheck source=contrib/makepkg/PKGBUILD.proto | ||||
| 		if ! . ./PKGBUILD; then | ||||
| 			msg_error "${BOLD}${pkgbase}:${ALL_OFF} failed to source PKGBUILD" | ||||
| 			return 1 | ||||
| 		fi | ||||
| 		pkgbase=${pkgbase:-$pkgname} | ||||
|  | ||||
| 		if [[ ! -e LICENSE ]]; then | ||||
| 			msg_error "${BOLD}${pkgbase}:${ALL_OFF} is missing the LICENSE file" | ||||
|   | ||||
| @@ -191,7 +191,9 @@ path = [ | ||||
|     ".nvchecker.toml", | ||||
|     "*.install", | ||||
|     "*.sysusers", | ||||
|     "*sysusers.conf", | ||||
|     "*.tmpfiles", | ||||
|     "*tmpfiles.conf", | ||||
|     "*.logrotate", | ||||
|     "*.pam", | ||||
|     "*.service", | ||||
|   | ||||
		Reference in New Issue
	
	Block a user