X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=lisa;h=d961ede0e8edbdb4224f9f2efb056f658a0fd755;hb=cabe09b4d162c7f680b07863cc043359545dabdd;hp=18d27d2b1a7bcd0d887e2645780786a52b04222e;hpb=6585bb869edad7dd8b1bff197eca99907842cfa8;p=dak.git diff --git a/lisa b/lisa index 18d27d2b..d961ede0 100755 --- a/lisa +++ b/lisa @@ -2,7 +2,7 @@ # Handles NEW and BYHAND packages # Copyright (C) 2001, 2002 James Troup -# $Id: lisa,v 1.15 2002-05-22 16:55:13 troup Exp $ +# $Id: lisa,v 1.17 2002-05-23 12:19:05 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 @@ -37,28 +37,12 @@ ################################################################################ -# TODO -# ---- - -# We don't check error codes very thoroughly; the old 'trust jennifer' -# chess nut... db_access calls in particular - -# Possible TODO -# ------------- - -# Handle multiple different section/priorities (?) -# hardcoded debianness (debian-installer, source priority etc.) (?) -# Slang/ncurses interface (?) -# write changed sections/priority back to katie for later processing (?) - -################################################################################ - import copy, errno, os, readline, string, stat, sys, tempfile; import apt_pkg, apt_inst; import db_access, fernanda, katie, logging, utils; # Globals -lisa_version = "$Revision: 1.15 $"; +lisa_version = "$Revision: 1.17 $"; Cnf = None; Options = None; @@ -122,6 +106,8 @@ def recheck(): if answer == 'R': Katie.do_reject(0, reject_message); + os.unlink(Katie.pkg.changes_file[:-8]+".katie"); + return 0; elif answer == 'S': return 0; elif answer == 'Q': @@ -221,8 +207,10 @@ def sg_compare (a, b): # Sort by have note a_note_state = a["note_state"]; b_note_state = b["note_state"]; - if a_note_state != b_note_state: - return cmp(a, b); + if a_note_state < b_note_state: + return -1; + elif a_note_state > b_note_state: + return 1; # Sort by time of oldest upload return cmp(a["oldest"], b["oldest"]); @@ -274,10 +262,10 @@ def sort_changes(changes_files): else: per_source[source]["note_state"] = 2; # all per_source[source]["list"].sort(indiv_sg_compare); - per_source_items = per_source.items(); + per_source_items = per_source.items(); per_source_items.sort(sg_compare); for i in per_source_items: - for j in i[1]["list"]: + for j in i[1]["list"]: sorted_list.append(j["filename"]); return sorted_list;