#!/usr/bin/env python
# Remove obsolete .changes files from proposed-updates
-# Copyright (C) 2001, 2002, 2003 James Troup <james@nocrew.org>
-# $Id: halle,v 1.10 2003-11-20 02:37:37 troup Exp $
+# Copyright (C) 2001, 2002, 2003, 2004 James Troup <james@nocrew.org>
+# $Id: halle,v 1.11 2004-02-27 20:07:40 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
if len(split_line) != 2:
utils.fubar("Parse error (not exactly 2 elements): %s" % (line));
install_type = split_line[0];
- if [ "install", "install-u", "sync-install" ].count(install_type) == 0:
+ if install_type not in [ "install", "install-u", "sync-install" ]:
utils.fubar("Unknown install type ('%s') from: %s" % (install_type, line));
changes_filename = split_line[1]
if Options["debug"]:
# Generate file lists used by apt-ftparchive to generate Packages and Sources files
# Copyright (C) 2000, 2001, 2002, 2003, 2004 James Troup <james@nocrew.org>
-# $Id: jenna,v 1.26 2004-01-21 03:22:23 troup Exp $
+# $Id: jenna,v 1.27 2004-02-27 20:07:40 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
return 1;
# Otherwise, look in what suites the user specified
suites = Options["Suite"].split();
- return suites.count("stable");
+
+ if "stable" in suites:
+ return 1;
+ else:
+ return 0;
################################################################################
#!/usr/bin/env python
# Checks Debian packages from Incoming
-# Copyright (C) 2000, 2001, 2002, 2003 James Troup <james@nocrew.org>
-# $Id: jennifer,v 1.43 2003-11-07 01:48:58 troup Exp $
+# Copyright (C) 2000, 2001, 2002, 2003, 2004 James Troup <james@nocrew.org>
+# $Id: jennifer,v 1.44 2004-02-27 20:07:40 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
################################################################################
# Globals
-jennifer_version = "$Revision: 1.43 $";
+jennifer_version = "$Revision: 1.44 $";
Cnf = None;
Options = None;
###############################################################################
def main():
- global Cnf, Options, Logger, nmu;
+ global Cnf, Options, Logger;
changes_files = init();
#!/usr/bin/env python
# Dependency check proposed-updates
-# Copyright (C) 2001, 2002 James Troup <james@nocrew.org>
-# $Id: jeri,v 1.11 2003-01-02 18:13:03 troup Exp $
+# Copyright (C) 2001, 2002, 2004 James Troup <james@nocrew.org>
+# $Id: jeri,v 1.12 2004-02-27 20:07:40 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
if len(split_line) != 2:
utils.fubar("Parse error (not exactly 2 elements): %s" % (line));
install_type = split_line[0];
- if [ "install", "install-u", "sync-install" ].count(install_type) == 0:
+ if install_type not in [ "install", "install-u", "sync-install" ]:
utils.fubar("Unknown install type ('%s') from: %s" % (install_type, line));
changes_filename = split_line[1]
if Options["debug"]:
#!/usr/bin/env python
# Utility functions for katie
-# Copyright (C) 2001, 2002, 2003 James Troup <james@nocrew.org>
-# $Id: katie.py,v 1.43 2003-11-07 01:48:42 troup Exp $
+# Copyright (C) 2001, 2002, 2003, 2004 James Troup <james@nocrew.org>
+# $Id: katie.py,v 1.44 2004-02-27 20:07:40 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
def __init__(self, Cnf):
self.Cnf = Cnf;
- self.values = {};
# Read in the group-maint override file
self.nmu = nmu_p(Cnf);
self.accept_count = 0;
ql = map(lambda x: x[0], q.getresult());
# Try (1)
- if ql.count(source_version):
+ if source_version in ql:
continue
# Try (2)
orig_source_version = re_bin_only_nmu_of_mu.sub('', source_version)
- if ql.count(orig_source_version):
+ if orig_source_version in ql:
continue
# Try (3)
orig_source_version = re_bin_only_nmu_of_nmu.sub('', source_version)
- if ql.count(orig_source_version):
+ if orig_source_version in ql:
continue
# No source found...
#!/usr/bin/env python
# Handles NEW and BYHAND packages
-# Copyright (C) 2001, 2002, 2003 James Troup <james@nocrew.org>
-# $Id: lisa,v 1.27 2004-01-29 23:18:47 dsilvers Exp $
+# Copyright (C) 2001, 2002, 2003, 2004 James Troup <james@nocrew.org>
+# $Id: lisa,v 1.28 2004-02-27 20:07:40 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
import db_access, fernanda, katie, logging, utils;
# Globals
-lisa_version = "$Revision: 1.27 $";
+lisa_version = "$Revision: 1.28 $";
Cnf = None;
Options = None;
got_priority = 0;
while not got_priority:
new_priority = utils.our_raw_input("New priority: ").strip();
- if Priorities.priorities.count(new_priority) == 0:
+ if new_priority in Priorities.priorities:
print "E: '%s' is not a valid priority, try again." % (new_priority);
else:
got_priority = 1;
got_section = 0;
while not got_section:
new_section = utils.our_raw_input("New section: ").strip();
- if Sections.sections.count(new_section) == 0:
+ if new_section in Sections.sections:
print "E: '%s' is not a valid section, try again." % (new_section);
else:
got_section = 1;
# Utility functions
# Copyright (C) 2000, 2001, 2002, 2003, 2004 James Troup <james@nocrew.org>
-# $Id: utils.py,v 1.62 2004-01-21 03:48:58 troup Exp $
+# $Id: utils.py,v 1.63 2004-02-27 20:07:40 troup Exp $
################################################################################
if section.find('/') != -1:
component = section.split('/')[0];
- if component.lower() == "non-us" and section.count('/') > 0:
+ if component.lower() == "non-us" and section.find('/') != -1:
s = component + '/' + section.split('/')[1];
if Cnf.has_key("Component::%s" % s): # Avoid e.g. non-US/libs
component = s;