From: James Troup Date: Fri, 1 Dec 2000 22:09:14 +0000 (+0000) Subject: fix p-u install handling typo; fix pulling of source into pool (again) and commit... X-Git-Url: https://git.decadent.org.uk/gitweb/?a=commitdiff_plain;h=73e6cbfb6a8e2d987158e045672ab422dd843a19;p=dak.git fix p-u install handling typo; fix pulling of source into pool (again) and commit SQL transaction earlier --- diff --git a/katie b/katie index 5ecbb001..7624d6c4 100755 --- a/katie +++ b/katie @@ -2,7 +2,7 @@ # Installs Debian packaes # Copyright (C) 2000 James Troup -# $Id: katie,v 1.7 2000-12-01 17:33:29 troup Exp $ +# $Id: katie,v 1.8 2000-12-01 22:09:14 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 @@ -232,7 +232,7 @@ def check_changes(filename): # If running from within proposed-updates kill non-stable distributions if string.find(os.getcwd(), 'proposed-updates') != -1: for i in ("frozen", "unstable"): - if changes["distributions"].has_key(i): + if changes["distribution"].has_key(i): reject_message = reject_message + "Removing %s from distribution list.\n" del changes["distribution"][i] # Otherwise (normal case) map stable to updates @@ -688,7 +688,7 @@ def install (changes_filename, summary, short_summary): for qid in qd: # First move the files to the new location legacy_filename = qid["path"]+qid["filename"]; - pool_location = utils.poolify (files[file]["source"], files[file]["component"]); + pool_location = utils.poolify (changes["source"], files[file]["component"]); pool_filename = pool_location + os.path.basename(qid["filename"]); destination = Cnf["Dir::PoolDir"] + pool_location utils.move(legacy_filename, destination); @@ -706,10 +706,10 @@ def install (changes_filename, summary, short_summary): # Remove old data from the DB: files table projectB.query("DELETE FROM files WHERE id = %s" % (qid["files_id"])); - utils.move (changes_filename, Cnf["Dir::IncomingDir"] + 'DONE/' + os.path.basename(changes_filename)) - projectB.query("COMMIT WORK"); + utils.move (changes_filename, Cnf["Dir::IncomingDir"] + 'DONE/' + os.path.basename(changes_filename)) + install_count = install_count + 1; if not Cnf["Dinstall::Options::No-Mail"]: