summaryrefslogtreecommitdiff
path: root/apt
AgeCommit message (Collapse)AuthorFilesLines
2010-11-10* apt/debfile.py:Julian Andres Klode1-15/+7
- Replace (undocumented) use of python-debian debfile.DebFile API with the equivalent apt_inst.DebFile API (Closes: #603043)
2010-10-18fix compat issues with python3Michael Vogt1-2/+2
2010-09-13merged from lp:~mvo/python-apt/mvoMichael Vogt1-1/+0
2010-09-08* apt/debfile.py:Michael Vogt1-1/+0
- remove bogus comment * python/tag.cc: - allow "bytes" type in TagSecNew (for python3)
2010-09-07cherry pick from debian-sidMichael Vogt1-0/+1
2010-09-07* add "provides" property to the apt.Version objectsMichael Vogt3-3/+26
* 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()
2010-09-07* apt/debfile:Michael Vogt1-1/+2
- don't fail if we conflict with the pkgs we are reinstalling
2010-09-07merged from lp:~kiwinote/python-apt/reinstall-same-fileMichael Vogt1-1/+2
2010-09-03apt/cache.py: use alternative SourceList if sources_list is usedMichael Vogt1-3/+5
2010-09-03* apt/cache.py:Michael Vogt1-1/+17
- add "sources_list" parameter to cache.update() to force updating a single sources.list entry only
2010-09-02merged patch from Samuel Lidén Borell to fix crash if there utf8 Michael Vogt1-1/+1
in the control file (LP: #624290) and add test
2010-08-31* cherry pick debfile fix from lp:~mvo/python-apt/mvo (402..405):Michael Vogt1-2/+2
* apt/debfile.py: - fix error when reading binary content and add regresion test
2010-08-31* apt/debfile.py:Michael Vogt1-2/+2
- fix error when reading binary content and add regresion test
2010-08-27add "provides" property to the apt.Version objectsMichael Vogt1-0/+5
2010-08-27* apt/debfile.py:Michael Vogt1-0/+1
- add missing init for _installed_conflicts (LP: #618597)
2010-08-05merged fix from the mvo branchMichael Vogt1-0/+1
2010-08-05merged from debian-sid, fix crash in Dsc file handlingMichael Vogt1-0/+1
2010-08-05* apt/debfile.py:Michael Vogt1-1/+4
- fix crash in DscFile handling and add regression test
2010-08-05* apt/debfile.py:Michael Vogt1-0/+1
- fix crash in DscFile handling and add regression test
2010-07-30apt/debfile.py: improve loggingMichael Vogt1-1/+3
2010-07-28merged from the debian-sid bzr branchMichael Vogt3-69/+269
2010-07-12* tests/test_debfile.py:Michael Vogt1-1/+1
- properly setup fixture data to make debfile test pass (closes: #588796)
2010-07-12tests/test_debfile.py: add fixture dpkg-status file to make tests workMichael Vogt1-1/+1
2010-07-06apt/cache.py: use apt_pkg.config instead of apt_pkg.ConfigMichael Vogt1-1/+2
2010-07-06fix py3 compatibilityMichael Vogt1-1/+2
2010-07-06fix debfile to work with py3, update testsMichael Vogt1-1/+2
2010-07-05apt/debfile.py: make to_{hex,strish} staticmethodsMichael Vogt1-0/+2
2010-07-02* tests/test_debs/*.deb, tests/test_debfile.py:Michael Vogt1-4/+6
- add automatic test based on the test debs from gdebi
2010-07-02* apt/debfile.py:Michael Vogt1-1/+12
- check if the debfiles provides are in conflict with the systems packages
2010-07-02apt/debfile.py: fix bug in compare_to_version_in_cache with use_installed=TrueMichael Vogt1-1/+1
2010-07-02apt/debfile.py: DebFile needs a open fileMichael Vogt1-1/+1
2010-07-02merged lp:~kiwinote/python-apt/merge-gdebi-changes, this port theMichael Vogt3-61/+223
DebPackage class fixes from gdebi into python-apt so that gdebi can use the class from python-apt directly
2010-06-29* apt/cache.py:Michael Vogt1-0/+15
- add new "dpkg_journal_dirty" property that can be used to detect a interrupted dpkg (the famous "E: dpkg was interrupted, you must manually run 'dpkg --configure -a'")
2010-06-28Revert own change, as we can conflict/provide the same packageKiwinote1-13/+0
2010-06-28self.conflicts returns name, ver, oper, rather than name, oper, verKiwinote1-4/+4
2010-06-28And subtract a yearKiwinote1-0/+1
2010-06-28December is month 12, not month 0Kiwinote1-0/+2
2010-06-28Don't query cache[].candidate.version when no cache[].candidate is availableKiwinote1-1/+3
2010-06-25Don't depend on python-debianKiwinote1-2/+13
2010-06-25Merge cache.get_providers_for() into cache.get_providing_packages() and ↵Kiwinote2-48/+46
update debfile.py to use this
2010-06-25Remove unneeded cache.downloadable()Kiwinote1-10/+0
2010-06-25Merge gdebi changesKiwinote2-109/+310
2010-06-25apt/cache.py: When iterating over the cache, do so sorted by package name.Martin Pitt1-1/+11
With this we read the the package lists linearly if we need to access the package records, instead of having to do thousands of random seeks; the latter is disastrous if we use compressed package indexes, and slower than necessary for uncompressed indexes.
2010-06-10* apt/utils.py:Michael Vogt1-0/+5
- fix end date calculation for releases in june
2010-06-01apt/__init__.py: remove unneeded importsMichael Vogt1-3/+0
2010-06-01apt/__init__.py: enable deprecation warnings againMichael Vogt1-2/+0
2010-06-01revert commit 346 (this re-enable the deprecation warnings)Michael Vogt4-25/+20
2010-06-01* merge from debian bzr, remaining changes:Michael Vogt2-48/+66
- 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
2010-05-19Add Version.source_version and enhance Sebastian's patch to make useJulian Andres Klode1-8/+22
of it, in order to find the best changelog for the package.
2010-05-19Merge a patch from Sebastian Heinlein to make get_changelog() onlyJulian Andres Klode1-17/+8
check sources where source version >= binary version (Closes: #581831).