Commit 30bcca88 authored by Lukas Fleischer's avatar Lukas Fleischer Committed by Pierre Schmitz
Browse files

commitpkg: Use positive patterns in SVN checks



In addition to what we had before, this will also detect:

* Non-existent files.
* Files that are missing or scheduled for deletion.
* Ignored files.

Signed-off-by: default avatarLukas Fleischer <archlinux@cryptocrack.de>
Signed-off-by: default avatarPierre Schmitz <pierre@archlinux.de>
parent 25aae4ec
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -79,7 +79,7 @@ esac

# check if all local source files are under version control
for s in "${source[@]}"; do
	if [[ $s != *://* ]] && svn status "$s" | grep -q '^\?'; then
	if [[ $s != *://* ]] && ! svn status -v "$s" | grep -q '^[ AMRX~]'; then
		abort "$s is not under version control"
	fi
done
@@ -90,7 +90,7 @@ for i in 'changelog' 'install'; do
	for file in $filelist; do
		# evaluate any bash variables used
		eval file=${file}
		if svn status "${file}" | grep -q '^\?'; then
		if ! svn status -v "${file}" | grep -q '^[ AMRX~]'; then
			abort "${file} is not under version control"
		fi
	done