################################################################################
-def do_pkg(changes_file, session):
+def do_pkg(changes_file):
+ session = DBConn().session()
u = Upload()
u.pkg.changes_file = changes_file
(u.pkg.changes["fingerprint"], rejects) = utils.check_signature(changes_file)
if sys.stdout != stdout_fd:
sys.stdout.close()
sys.stdout = stdout_fd
+ session.close()
################################################################################
if not changes_file:
continue
print "\n" + changes_file
- do_pkg (changes_file, session)
+ do_pkg (changes_file)
files = set(os.listdir(cnf["Show-New::HTMLPath"]))
to_delete = filter(lambda x: x.endswith(".html"), files.difference(sources))