+ session = DBConn().session()
+ u = Upload()
+ u.pkg.changes_file = changes_file
+ (u.pkg.changes["fingerprint"], rejects) = utils.check_signature(changes_file)
+ u.load_changes(changes_file)
+ new_queue = get_policy_queue('new', session );
+ u.pkg.directory = new_queue.path
+ u.update_subst()
+ origchanges = os.path.abspath(u.pkg.changes_file)
+ files = u.pkg.files
+ changes = u.pkg.changes
+ htmlname = changes["source"] + "_" + changes["version"] + ".html"
+ sources.add(htmlname)