X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=tea;h=20632426a238b17e977c9075bbea49920bba42c2;hb=aba56aad0ca957e7bfca30abc9ed34943dd6ddaf;hp=fb5cdeb01570d6f67a77ad60be026009b3e08961;hpb=2de8a16fabbb8edf646ba2acd4722f2e070df5e0;p=dak.git diff --git a/tea b/tea index fb5cdeb0..20632426 100755 --- a/tea +++ b/tea @@ -2,7 +2,7 @@ # Sanity check the database # Copyright (C) 2000, 2001 James Troup -# $Id: tea,v 1.9 2001-03-21 05:37:57 troup Exp $ +# $Id: tea,v 1.10 2001-03-24 03:30:35 troup Exp $ # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -148,9 +148,7 @@ SELECT l.path, f.filename FROM files f, dsc_files df, location l WHERE df.source first_filename = filename; elif first_path != path: symlink = path + '/' + os.path.basename(first_filename); - if os.path.exists(symlink): - print "Not live, exists... %s[%s] {%s}" % (filename, source_id, symlink); - else: + if not os.path.exists(symlink): broken = 1; print "WOAH, we got a live one here... %s [%s] {%s}" % (filename, source_id, symlink); if broken: