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: Lukas Fleischer <archlinux@cryptocrack.de> --- commitpkg | 6 ++++-- 1 files changed, 4 insertions(+), 2 deletions(-) diff --git a/commitpkg b/commitpkg index 36d018b..223f078 100755 --- a/commitpkg +++ b/commitpkg @@ -80,8 +80,10 @@ esac # check if all local source files, as well as changelog and install files are # under version control for i in ${source[@]} "$changelog" "$install"; do - if [[ -n $i && $i != *://* ]] && svn status $i | grep -q '^\?'; then - abort "$i is not under version control" + if [[ -n $i && $i != *://* ]]; then + if ! svn status -v $i | grep -q '^[ AMRX~]'; then + abort "$i is not under version control" + fi fi done -- 1.7.6