From: James Troup Date: Sat, 24 Mar 2001 03:30:35 +0000 (+0000) Subject: Make source_in_one_dir more useful. X-Git-Url: https://git.decadent.org.uk/gitweb/?a=commitdiff_plain;h=64903960a4831d780be79b46e75b6ef15ffcc34e;p=dak.git Make source_in_one_dir more useful. --- 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: