34 Commits

Author SHA1 Message Date
Colin Watson
498303250a Fix mismerge. 2013-09-25 13:31:50 +01:00
Colin Watson
3b0a0e665a merge trunk 2013-09-25 12:54:05 +01:00
Adam D. Barratt
8bbdf65d07 lib/dpkg.c: don't try to dereference a NULL pointer
Signed-off-by: Adam D. Barratt <adam@adam-barratt.org.uk>
2013-09-24 04:56:27 +00:00
Adam D. Barratt
a881298103 Remove the C library placeholder for "pre-depends"
We stopped populating the element with real data some time ago, it's
time to drop it entirely.

Signed-off-by: Adam D. Barratt <adam@adam-barratt.org.uk>
2013-09-18 10:00:04 +00:00
Colin Watson
4576882338 Support :any architecture qualifiers for multiarch
Multiarch adds a Depends: foo:any syntax, permitted only if the
target of the dependency is "Multi-Arch: allowed".  This has
been supported by dpkg and apt for some time and is now safe to
use in unstable.

[Adam D. Barratt: adjusted to use consts.py]

Signed-off-by: Adam D. Barratt <adam@adam-barratt.org.uk>
2013-09-17 20:07:38 +00:00
Colin Watson
3f6eabe34f Add support for :any architecture qualifiers, for multiarch. 2013-09-16 15:02:45 +01:00
Niels Thykier
1641706305 Migrate to python2.7
Signed-off-by: Niels Thykier <niels@thykier.net>
2013-07-07 15:37:15 +02:00
Colin Watson
ee9bb6c002 Python 2.6 -> 2.7 2012-10-22 13:43:51 +01:00
Colin Watson
975852afca Fix checklib link order. 2012-10-22 13:42:33 +01:00
Cyril Brulebois
c992787918 lib/dpkg.c: Keep noise related to AIEEEs to a minimum.
Signed-off-by: Cyril Brulebois <kibi@debian.org>
2012-03-05 12:13:21 +00:00
Cyril Brulebois
47c808309b britney: Print the current package to stderr when AIEEEing.
Signed-off-by: Cyril Brulebois <kibi@debian.org>
2012-03-05 11:55:41 +00:00
Niels Thykier
68304a8b72 Removed even more stuff from dpkg.c
Signed-off-by: Niels Thykier <niels@thykier.net>
2011-12-27 11:39:57 +01:00
Niels Thykier
bdaf40775a Even more garbage collection of dpkg.c and even some of dpkg-lib.c
Signed-off-by: Niels Thykier <niels@thykier.net>
2011-12-26 15:04:56 +01:00
Niels Thykier
11f40f1f17 More code removal from dpkg.c
Signed-off-by: Niels Thykier <niels@thykier.net>
2011-12-25 22:55:50 +01:00
Niels Thykier
7eff120867 Removed unused C-API from dpkg.h
Signed-off-by: Niels Thykier <niels@thykier.net>
2011-12-25 22:42:44 +01:00
Niels Thykier
6f705b9585 Purged unused code from lib/britney-py.c
Signed-off-by: Niels Thykier <niels@thykier.net>
2011-12-14 09:52:10 +01:00
Adam D. Barratt
f5f558818b Switch to using Python 2.6
Simply updating the include in britney-py.c, rebuilding and changing
the shebang of britney.py appears to be enough to make the switch in my
tests, so we just do that for now at least.

Signed-off-by: Adam D. Barratt <adam@adam-barratt.org.uk>
2011-11-21 19:23:06 +00:00
Mehdi Dogguy
ea496a3b48 Remove obsolete files 2011-10-18 20:28:08 +00:00
Adam D. Barratt
5498c6c4a1 lib/dpkg.c: Also use SIZEOFHASHMAP for the sources hashes
Commit 7bba1173e02583a0dd669bde49fb91c0ea46f243 increased the size of the
binary package and virtual packages hash and introduced the constant
SIZEOFHASHMAP to ease further changes.

Apply the same change to the source package and source note hashes

Signed-off-by: Adam D. Barratt <adam@adam-barratt.org.uk>
2011-05-09 15:06:36 +00:00
Mehdi Dogguy
add7f512db Update buildd links (s@build.php@status/logs.php@) 2011-04-11 12:38:54 +00:00
Adam D. Barratt
ff3fdfe07c 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.
2011-02-10 23:06:26 +00:00
Adam D. Barratt
bd048814b2 Increase the size of the tables used for storing package information
Signed-off-by: Adam D. Barratt <adam@adam-barratt.org.uk>

If the internal tables used in the C module are not large enough to store
the list of discovered packages then checking installability becomes very
slow.
2010-06-23 19:03:40 +00:00
Release Managers
eb1bf1dbe7 Add new RAs
Add kfreebsd-i386, kfreebsd-amd64
2009-08-07 05:20:53 +00:00
Adeodato Simó
a666ac2bd3 Go back to Python 2.4, since there are buggy results with 2.5.
(In particular, britney2 thinks all packages are uninstallable when
executing under Python 2.5.)
2009-03-14 16:54:46 +01:00
Adeodato Simó
17672ae8da Update britney-py.c to work with Python 2.5.
These changes are cherry-picked from britney1 (7e94274 and f50c039).
Commit messages follow.

7e94274: Use python 2.5.
f50c039: use PyObject_DEL() for memory allocated with PyObject_NEW().

See http://www.python.org/doc/2.5.4/whatsnew/ports.html (section about
"obmalloc"): Python 2.5 is no longer lenient about code that mixes NEW/DEL
from different memory families of functions.
2009-03-14 12:46:33 +01:00
Fabio Tranchitella
3dc3be1c72 Merge with the last official release of Britney. 2008-01-12 18:41:03 +00:00
Fabio Tranchitella
e9afdfb2e0 Fixed a segfault for faux packages, which do not have the architecture field. 2006-08-23 12:54:48 +00:00
Fabio Tranchitella
b1afe1ee3d Removed a debug method, it should not be released. 2006-08-20 19:35:25 +00:00
Fabio Tranchitella
76b3a8cf3c Fixed a pointer problem which caused segfaults when dealing with virtual packages; fixed a bug in source removal; moved add_binary and remove_binary from the britney module to the Packages object. 2006-08-20 19:25:21 +00:00
Fabio Tranchitella
3825241619 Britney ported to is_installable: the code runs, but more testing is needed. 2006-08-18 22:50:52 +00:00
Fabio Tranchitella
ebf82f844d Portability fix: add the -fPIC flags in the Makefile. 2006-08-18 21:46:28 +00:00
Fabio Tranchitella
a0dc325294 Implemented buildSystem, removeBinary and addBinary for the c extension; added a sample python script. 2006-08-18 21:43:49 +00:00
Fabio Tranchitella
22988cb162 Added old britney's update_out.py, for real. 2006-08-18 21:30:35 +00:00
Fabio Tranchitella
c8468f9516 Imported the old britney and its libraries. 2006-08-18 21:27:54 +00:00