lp:debian/squeeze/python-apt

Created by James Westby and last modified
Get this branch:
bzr branch lp:debian/squeeze/python-apt
Members of Ubuntu branches can upload to this branch. Log in for directions.

Related bugs

Related blueprints

Branch information

Owner:
Ubuntu branches
Status:
Development

Recent revisions

26. By Julian Andres Klode

[ Michael Vogt ]
* python/apt_pkgmodule.cc:
  - strip multiarch by default in RealParseDepends
  - add optional parameter to allow parse_depends() to keep the
    multiarch parameter
* tests/test_deps.py:
  - add test forapt_pkg.parse_depends(strip_multiarch=True)
* python/arfile.cc, apt/debfile.py:
  - add support for .xz archives
* tests/test_debfile.py:
  - add test for xz compression

[ Julian Andres Klode ]
* tests/test_debfile.py:
  - Fix mixed tab/spaces indentation in xz test

25. By Julian Andres Klode

[ Julian Andres Klode ]
* python/generic.h: Fix a memory leak (leaking on every unicode string).
* debian/control: add Replaces to python-apt-common, python3-apt; to
  avoid file conflicts with files previously in python-apt (Closes: #605136).

[ Michael Vogt ]
* python/generic.h:
  - set Object to NULL in CppDeallocPtr
* python/depcache.cc:
  - don't run "actiongroup.release()" if the object was already
    deallocated
* tests/test_apt_cache.py:
  - fix tests to work if apt compressed indexes are enabled

24. By Julian Andres Klode

* Final 0.7.100 release; targeted at Squeeze.
* apt/debfile.py:
  - Replace (undocumented) use of python-debian debfile.DebFile API with
    the equivalent apt_inst.DebFile API (Closes: #603043)
* apt/package.py:
  - Fix docstring of Package.mark_delete() (Closes: #599042)
* doc:
  - Various documentation updates.
  - The C++ API/ABI is stable now.
* po
  - Update sl.po (Closes: #603359)

23. By Michael Vogt

[ Piotr Ozarowski ]
* Use dh_python3 to handle Python 3 files
  - bump minimum required versions of python-central and python3-all-dev
  - add new python3-apt, python3-apt-bdg and python-common binary packages
* Replace python-central with dh_python2

22. By Michael Vogt

[ Michael Vogt ]
* python/acquire.cc:
  - return long long when calling TotalNeeded(), FetchNeeded() and
    PartialPresent() from pkgAcquire(). This follows the change
    in libapt.
* apt/debfile.py:
  - add missing init for _installed_conflicts (LP: #618597)
* add "provides" property to the apt.Version objects
* apt/debfile.py:
  - fix error when reading binary content and add regresion test
* merged patch from Samuel Lidén Borell to fix crash if there utf8
  in the control file (LP: #624290) and add test
* apt/cache.py:
  - add "sources_list" parameter to cache.update() to force updating
    a single sources.list entry only
* debian/control:
  - add missing build-depends on python-debian (needed to run the
    tests for apt.debfile.DebPackage()
* data/templates/Ubuntu.info.in:
  - add extras.ubuntu.com and archvie.canonical.com to the
    templates
* aptsources/distinfo.py, aptsources/distro.py:
  - support non-official templates (like extras.ubuntu.com)
* fix return type of DebSize() and UsrSize(), thanks to
  Sebastian Heinlein, LP: #642936
* merge fix from Steven Chamberlain <email address hidden> for
  crash in unattended-upgrades, many many thanks (closes: #596408)
* python/acquire-item.cc:
  - fix two more int -> long long change to follow the changes
    from libapt
  - do use PyString_FromFormat(), in python versions below 2.7 it
    does not support long long (%llu), use strprintf() from libapt
    instead

[ Kiwinote ]
* apt/debfile:
  - don't fail if we conflict with the pkgs we are reinstalling

21. By Julian Andres Klode

* tests/test_apt_cache.py:
  - Do not insert ".." into sys.path, fixes FTBFS

20. By Michael Vogt

* tests/test_debfile.py:
 - properly setup fixture data to make debfile test pass
   (closes: #588796)

19. By Julian Andres Klode

[ Julian Andres Klode ]
* 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.

[ Michael Vogt ]
* 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

18. By Julian Andres Klode

Revert 0.7.93.3 and just set APT::Architecture to i386 for
test_aptsources; fixes FTBFS on powerpc.

17. By Julian Andres Klode

* Move documentation into python-apt-doc (Closes: #572617)
* Build documentation only once on the default Python version.
* python/acquire-item.cc:
  - Add AcquireItem.partialsize member.
* python/apt_pkgmodule.cc:
  - Treat '>>' and '>', '<<' and '<' as identical in check_dep (LP: #535667).
* python/generic.cc:
  - Map UntranslatedDepType to dep_type_untranslated.
* python/tag.cc:
  - Hack the TagFile iterator to not use shared storage (Closes: #572596):
    Scan once, duplicate the section data, and scan again.
* apt/package.py:
  - Create a string class BaseDependency.__dstr which makes '>' equal to
    '>>' and '<' equal to '<<' (compatibility).
  - Use the binary package version in Version.fetch_source() if the
    source version is not specified (i.e. in the normal case).
  - Always return unicode strings in Package.get_changelog (Closes: #572998).
* apt/progress/text.py:
  - Drop InstallProgress, it's useless to keep this alias around.
* apt/progress/old.py:
  - Let the new method call the old one; e.g. status_update() now calls
    self.statusUpdate(). This improves compatibility for sub classes.
* Merge with Ubuntu:
  - util/get_ubuntu_mirrors_from_lp.py:
    + rewritten to use +archivemirrors-rss and feedburner
  - pre-build.sh: update ubuntu mirrors on bzr-buildpackage (and also do this
    for Debian mirrors)
  - add break for packagekit-backend-apt (<= 0.4.8-0ubuntu4)
* tests:
  - test_deps: Add tests for apt_pkg.CheckDep, apt_pkg.check_dep,
    apt_pkg.parse_depends and apt_pkg.parse_src_depends.
* tests/data/aptsources/sources.list.testDistribution:
  - change one mirror which is not on the mirror list anymore.
* utils/get_debian_mirrors.py:
  - Parse Mirrors.masterlist instead of the HTML web page.
* utils/get_ubuntu_mirrors_from_lp.py:
  - Sort the mirror list of each country.

Branch metadata

Branch format:
Branch format 7
Repository format:
Bazaar repository format 2a (needs bzr 1.16 or later)
This branch contains Public information 
Everyone can see this information.

Subscribers