From 372e4b10399b8dc6712d99b014e0166b2bd6a638 Mon Sep 17 00:00:00 2001 From: James Troup Date: Wed, 25 Jul 2001 15:51:15 +0000 Subject: [PATCH] work around broken arch: aany packages conflicting with arch: all ones. make 2nd argument optional and default to 'r' for open_file --- rene | 5 ++++- utils.py | 4 ++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/rene b/rene index 2d12ec31..04d89a5c 100755 --- a/rene +++ b/rene @@ -2,7 +2,7 @@ # Check for obsolete binary packages # Copyright (C) 2000, 2001 James Troup -# $Id: rene,v 1.6 2001-06-20 18:46:35 troup Exp $ +# $Id: rene,v 1.7 2001-07-25 15:51:15 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 @@ -109,6 +109,9 @@ def main (): version = i[1]; if not architectures.has_key(arch): print "[%s]: %s appears for %s (vs. '%s')" % (source, binary, arch, architecture), + if not latest_version: + print "** mwaap, mwapp! Ignore me **"; + continue; if apt_pkg.VersionCompare(latest_version, version) != -1: print "- out of date.", else: diff --git a/utils.py b/utils.py index 4107533c..59df9f3c 100644 --- a/utils.py +++ b/utils.py @@ -1,6 +1,6 @@ # Utility functions # Copyright (C) 2000, 2001 James Troup -# $Id: utils.py,v 1.29 2001-07-13 15:54:59 troup Exp $ +# $Id: utils.py,v 1.30 2001-07-25 15:51:15 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 @@ -58,7 +58,7 @@ valid_components = { ###################################################################################### -def open_file(filename, mode): +def open_file(filename, mode='r'): try: f = open(filename, mode); except IOError: -- 2.39.5