# Generate Maintainers file used by e.g. the Debian Bug Tracking System
# Copyright (C) 2000, 2001, 2002, 2003, 2004 James Troup <james@nocrew.org>
-# $Id: charisma,v 1.17 2004-03-11 00:20:51 troup Exp $
+# $Id: charisma,v 1.18 2004-06-17 15:02:02 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
maintainer = fix_maintainer(source[2]);
if packages.has_key(package):
if packages[package]["priority"] <= suite_priority:
- if apt_pkg.VersionCompare(packages[package]["version"], version) == -1:
+ if apt_pkg.VersionCompare(packages[package]["version"], version) < 0:
packages[package] = { "maintainer": maintainer, "priority": suite_priority, "version": version };
else:
packages[package] = { "maintainer": maintainer, "priority": suite_priority, "version": version };
maintainer = get_maintainer(binary[2]);
if packages.has_key(package):
if packages[package]["priority"] <= suite_priority:
- if apt_pkg.VersionCompare(packages[package]["version"], version) == -1:
+ if apt_pkg.VersionCompare(packages[package]["version"], version) < 0:
packages[package] = { "maintainer": maintainer, "priority": suite_priority, "version": version };
else:
packages[package] = { "maintainer": maintainer, "priority": suite_priority, "version": version };
version = '*';
# A version of '*' overwhelms all real version numbers
if not packages.has_key(package) or version == '*' \
- or apt_pkg.VersionCompare(packages[package]["version"], version) == -1:
+ or apt_pkg.VersionCompare(packages[package]["version"], version) < 0:
packages[package] = { "maintainer": maintainer, "version": version };
file.close();
# 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.27 2004-02-27 20:07:40 troup Exp $
+# $Id: jenna,v 1.28 2004-06-17 15:02:02 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
delete_table = "bin_associations";
delete_col = "bin";
- if apt_pkg.VersionCompare(highest_arch_any_version, arch_all_version) != 1:
+ if apt_pkg.VersionCompare(highest_arch_any_version, arch_all_version) < 1:
# arch: all dominates
delete_packages(arch_any_versions, pkg, "all", suite,
arch_all_version, delete_table, delete_col, packages);
# Utility functions for katie
# Copyright (C) 2001, 2002, 2003, 2004 James Troup <james@nocrew.org>
-# $Id: katie.py,v 1.47 2004-04-07 00:12:13 troup Exp $
+# $Id: katie.py,v 1.48 2004-06-17 15:02:02 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
existent_version = entry[0];
suite = entry[1];
if suite in must_be_newer_than and \
- apt_pkg.VersionCompare(new_version, existent_version) != 1:
+ apt_pkg.VersionCompare(new_version, existent_version) < 1:
self.reject("%s: old version (%s) in %s >= new version (%s) targeted at %s." % (file, existent_version, suite, new_version, target_suite));
if suite in must_be_older_than and \
- apt_pkg.VersionCompare(new_version, existent_version) != -1:
+ apt_pkg.VersionCompare(new_version, existent_version) > -1:
self.reject("%s: old version (%s) in %s <= new version (%s) targeted at %s." % (file, existent_version, suite, new_version, target_suite));
################################################################################