X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=dak%2Fdakdb%2Fupdate5.py;h=beb961cc3c58d669f0a17f0723e94f758f9897db;hb=e87116cf37813c1d1eff68d46f1121b184cf7fe4;hp=f5357e8916d037b253866ca68102b31bc8ad45fb;hpb=2816c734fc3a4a784e5643c9c3c256ba0727fd63;p=dak.git diff --git a/dak/dakdb/update5.py b/dak/dakdb/update5.py index f5357e89..beb961cc 100755 --- a/dak/dakdb/update5.py +++ b/dak/dakdb/update5.py @@ -1,7 +1,7 @@ #!/usr/bin/env python """ -Database Update Script - Fix bin_assoc_by_arch view +Fix bin_assoc_by_arch view @contact: Debian FTP Master @copyright: 2009 Joerg Jaspert @@ -42,8 +42,7 @@ def do_update(self): SELECT ba.suite, ba.bin, a.id AS arch FROM bin_associations ba JOIN binaries b ON ba.bin = b.id, architecture a - WHERE a.id > 2 AND (b.architecture = 2 OR b.architecture = a.id) - """ + WHERE a.id > 2 AND (b.architecture = 2 OR b.architecture = a.id) """) c.execute("UPDATE config SET value = '5' WHERE name = 'db_revision'") self.db.commit()