X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=dak%2Fshow_new.py;h=cb40a4c98804be917ed9477039f9b65192bc1058;hb=d34d27f3196d602d8957463b4495cefbf402dc66;hp=3c0b046738017f003b7f264d3d493a612b28d764;hpb=7d54be11252ff02c378999fab7a6e873425f974b;p=dak.git diff --git a/dak/show_new.py b/dak/show_new.py index 3c0b0467..cb40a4c9 100755 --- a/dak/show_new.py +++ b/dak/show_new.py @@ -170,7 +170,6 @@ def do_pkg(changes_file): else: u.source_file_checks(deb_filename, session) u.check_source_against_db(deb_filename, session) - session.close() u.pkg.changes["suite"] = u.pkg.changes["distribution"] new = determine_new(u.pkg.changes, files, 0) @@ -188,18 +187,19 @@ def do_pkg(changes_file): print >> outfile, html_header(changes["source"], filestoexamine) - check_valid(new) + check_valid(new, session) distribution = changes["distribution"].keys()[0] print >> outfile, examine_package.display_changes(distribution, changes_file) for fn in filter(lambda fn: fn.endswith(".dsc"), filestoexamine): - print >> outfile, examine_package.check_dsc(distribution, fn) + print >> outfile, examine_package.check_dsc(distribution, fn, session) for fn in filter(lambda fn: fn.endswith(".deb") or fn.endswith(".udeb"), filestoexamine): - print >> outfile, examine_package.check_deb(distribution, fn) + print >> outfile, examine_package.check_deb(distribution, fn, session) print >> outfile, html_footer() outfile.close() + session.close() ################################################################################