From 926f0991cb2a926cf440acf76eb678368efcc41b Mon Sep 17 00:00:00 2001 From: asami Date: Sun, 14 Oct 2001 20:00:31 +0000 Subject: Add another check for duplicate installations of same port. Only search for logs in toplevel directory. A couple of cosmetic changes. --- Tools/portbuild/scripts/processlogs | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'Tools/portbuild') diff --git a/Tools/portbuild/scripts/processlogs b/Tools/portbuild/scripts/processlogs index dc606fd41caf..bc1fc8ddd66d 100755 --- a/Tools/portbuild/scripts/processlogs +++ b/Tools/portbuild/scripts/processlogs @@ -7,7 +7,7 @@ find $of -mtime 2 -delete 2>/dev/null if [ -f $of ]; then exit; fi -if [ -e .stamp -a $(echo $(find . -newer .stamp -type f -name '*.log' 2>/dev/null | wc -l)) = "0" ]; then exit; fi +if [ -e .stamp -a $(echo $(find . -maxdepth 1 -newer .stamp -type f -name '*.log' 2>/dev/null | wc -l)) = "0" ]; then exit; fi echo "Package building errors" >$of echo "

Package building errors

" >>$of @@ -50,7 +50,7 @@ else echo -n "$maint" >>$of echo -n "" >>$of if grep -q 'list of extra files and directories' $1; then - reason="extra"; tag="extra" + reason="mtree"; tag="mtree" elif grep -q 'Checksum mismatch' $1; then reason="checksum"; tag="checksum" elif grep -qE '(No checksum recorded for|(Maybe|Either) .* is out of date, or)' $1; then @@ -113,8 +113,10 @@ else reason="PLIST"; tag="plist" elif grep -q "Can't open display" $1; then reason="DISPLAY"; tag="display" + elif grep -q " is already installed - perhaps an older version" $1; then + reason="depend object"; tag="dependobj" elif grep -q "error in dependency .*, exiting" $1; then - reason="dependency"; tag="dependency" + reason="depend package"; tag="dependpkg" else reason="???"; tag="unknown" fi -- cgit