mirror of
https://git.launchpad.net/~ubuntu-release/britney/+git/britney2-ubuntu
synced 2025-02-23 19:31:55 +00:00
Really make britney2 work with python 2.5
PyDict_Next()'s ppos argument should be a Py_ssize_t, not an int. With this change, britney2 no longer believes that all packages are uninstallable.
This commit is contained in:
parent
1f8d2e2a2e
commit
f7117c1ea4
@ -1,4 +1,4 @@
|
||||
#!/usr/bin/python2.4
|
||||
#!/usr/bin/python2.5
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
# Copyright (C) 2001-2008 Anthony Towns <ajt@debian.org>
|
||||
|
@ -1,6 +1,4 @@
|
||||
// XXX Please notify DSA once britney2 moves to Python2.5, so that
|
||||
// they can uninstall python2.4-dev from ftp-master.
|
||||
#include <python2.4/Python.h>
|
||||
#include <python2.5/Python.h>
|
||||
|
||||
#include "dpkg.h"
|
||||
|
||||
@ -945,7 +943,7 @@ static PyObject *apt_versioncmp(PyObject *self, PyObject *args) {
|
||||
******************************************************/
|
||||
|
||||
static PyObject *build_system(PyObject *self, PyObject *args) {
|
||||
int pos = 0;
|
||||
Py_ssize_t pos = 0;
|
||||
char *arch;
|
||||
PyObject *pkgs, *key, *value, *pyString;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user