| Age | Commit message (Collapse) | Author | Files | Lines |
|
|
|
- different mirror list
* data/templates/gNewSense.info.in,
data/templates/gNewSense.mirrors:
- add gNewSense template and mirrors, thanks to Karl Goetz
* apt/cache.py:
- Make Cache.get_changes() much (~35x) faster (Closes: #578074).
- Make Cache.req_reinstall_pkgs much faster as well.
- Make Cache.get_providing_packages() about 1000 times faster.
- Use has_versions and has_provides from apt_pkg.Package where possible.
* apt/package.py:
- Decode using utf-8 in installed_files (LP: #407953).
- Fix fetch_source() to work when source name = binary name (LP: #552400).
- Merge a patch from Sebastian Heinlein to make get_changelog() only
check sources where source version >= binary version (Closes: #581831).
- Add Version.source_version and enhance Sebastian's patch to make use
of it, in order to find the best changelog for the package.
* python:
- Return bool instead of int to Python where possible, looks better.
- Document every class, function, property.
* python/cache.cc:
- Check that 2nd argument to Cache.update() really is a SourceList object.
- Fix PackageFile.not_automatic to use NotAutomatic instead of NotSource.
- Add Package.has_versions to see which packages have at least one version,
and Package.has_provides for provides.
- Add rich compare methods to the Version object.
* python/generic.cc:
- Fix a memory leak when using old attribute names.
- Map ArchiveURI property to archive_uri
* python/progress.cc:
- Do not pass arguments to InstallProgress.wait_child().
* doc:
- Update the long documentation.
* debian/control:
- Change priority to standard, keep -doc and -dev on optional.
* utils/migrate-0.8.py:
- Open files in universal newline support and pass filename to ast.parse.
- Add has_key to the list of deprecated functions.
- Don't abort if parsing failed.
- do not require files to end in .py if they are passed on the command
line or if they contain python somewhere in the shebang line.
* apt/cache.py:
- make cache open silent by default (use apt.progress.base.OpProgress)
* tests/data/aptsources_ports/sources.list:
- fix ports test-data
* tests/test_apt_cache.py:
- add simple test for basic cache/dependency iteration
|
|
|
|
Finally, a complete reference to apt_pkg available
via pydoc and __doc__ attributes.
|
|
|
|
deprecation warnings in apt_pkg directly; and don't just
disable any deprecation warning in apt/__init__.py (LP: #548623)
|
|
|
|
- Treat '>>' and '>', '<<' and '<' as identical in check_dep (LP: #535667).
* tests:
- test_deps: Add tests for apt_pkg.CheckDep, apt_pkg.check_dep,
apt_pkg.parse_depends and apt_pkg.parse_src_depends.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
- add UntranslatedDepType attribute to DependencyType
- add DepTypeEnum that returns a value from
{DepDepends, DepPreDepends, ...}
* python/apt_pkgmodule.cc:
- add DepDpkgBreaks, DepEnhances constants
* doc/source/apt_pkg/{cache.rst, index.rst}:
- update documentation as well
|
|
They have been replaced with apt.progress.base, so stuff like GTK+ or
Qt progress classes can be written using subclassing.
|
|
In apt_pkgmodule, change the type to Configuration*. In configuration.cc,
check that GetSelf(Self).Tree(0) != 0 before doing GetSelf(Self).Tree(0)->Parent.
|
|
Now the constants are accessible from the types, and not only from instances.
|
|
Basically, we only want to have on PyAcquireItem per pkgAcquire::Item,
and one PyAcquireItemDesc per pkgAcquire::ItemDesc. Therefore, we store
them so we can return them at a later time.
|
|
|
|
This is yet another context manager, this time for locking files. It can
be used multiple times and features an internal counter.
|
|
This is the new alternative to pkgsystem_lock() and pkgsystem_unlock(),
and is the recommended one.
|
|
|
|
|
|
Python's gettext() ignores setlocale() which causes a strange behavior
because the values received from apt-pkg respect setlocale(). We circumvent
this problem by calling the C version of gettext(). This is also much
faster.
|
|
PyAcquireItemDesc_Type contain a pointer.
|
|
|
|
- apt_pkg.AcquireProgress
- apt_pkg.OpProgress
|
|
The C++ API provides support for creating Python objects from C++ objects
given by pointer or reference (depending on the implementation of the Python
object) and for retrieving the underlying C++ object from the Python object
and for checking the type of the Python object.
|
|
Configuration,ConfigurationPtr,ConfigurationSub into one type.
This makes the whole API easier. The disadvantage is that we require 8 bytes (??) more per
object for the owner object pointer, which is NULL for most cases (the only exception being
objects created by Configuration.sub_tree).
|
|
The dependency type constants have no use, because we do not export values
anywhere. The cleanup moves all #ifdef COMPAT_0_7 together into one section.
|
|
|
|
|
|
This was copied over from "Porting Extension Modules to 3.0", and is not
really needed.
|
|
|
|
This is the first step towards implementing coding guidelines for the
C++ code and providing an usable C++ API.
|
|
The Hashes class is a function which calculates all supported hashes for
one input. DebImg will use this for calculating the hashes of files.
|
|
apt_pkg.parse_[src_]depends() now use CompType instead of CompTypeDeb
(i.e. < instead of <<) to match the interface of Version.depends_list_str.
|
|
We can not keep the old apt_pkg.Version constant, because the name Version
is already used by the Version class.
|
|
|
|
|
|
|
|
We switched to using tp_alloc() to create new objects. Some types
had no tp_flags set and were not initialized using PyType_Ready,
causing tp_alloc (PyType_GenericAlloc) to crash.
|
|
|
|
|
|
|
|
|
|
|