summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2009-01-29apt/package.py: add Origin.not_automaticMichael Vogt1-0/+1
2009-01-29apt/cache.py: test for existance first before reading the fileMichael Vogt1-3/+4
2009-01-29* apt/cache.py:Michael Vogt6-12/+36
- when setting a alternative rootdir, read the config from it as well * python/configuration.cc, python/apt_pkgmodule.cc: - add apt_pkg.ReadConfigDir()
2009-01-26revert commit r317Michael Vogt2-6/+0
2009-01-26apt/package.py: typo in getdefaulttimeout, add changelog to simple testMichael Vogt1-1/+3
2009-01-26apt/package.py: compatibility with python2.4 (pep 341 missing)Michael Vogt1-51/+54
2009-01-23* apt/package.py:Michael Vogt2-4/+10
- make sure to set the defaulttimeout back to the original value (in getChangelog(), LP: #314212)
2009-01-23* apt/cache.py:Michael Vogt2-0/+6
- when running with the rootdir option, run InitConfig() again to ensure that the config from the rootdir is read, not from the host (lp: #243550)
2009-01-22fix incorrect indent Michael Vogt2-30/+31
2009-01-21* aptsources/distro.py:Michael Vogt3-13/+26
- use iso_3166.xml instead of iso_3166.tab * debian/control: - add Recommends to iso-codes (for iso_3166.xml)
2009-01-21aptsources/distro.py: fix fallout from the indent changesMichael Vogt1-63/+62
2009-01-16* apt/__init__.py:Michael Vogt2-3/+5
- remove the future warning
2009-01-13merge from the debian branchMichael Vogt115-2862/+5955
2009-01-13* apt/package.py:Michael Vogt3-10/+28
- fix bug in candidateInstalledSize property * aptsources/distinfo.py: - fix too restrictive mirror url check * aptsources/distro.py: - only add nearest_server and server to the mirrors if they are defined
2009-01-13* apt/*.py:Michael Vogt115-2849/+5934
- Almost complete cleanup of the code - Remove inconsistent use of tabs and spaces (Closes: #505443) - Improved documentation * apt/debfile.py: - Drop get*() methods, as they are deprecated and were never in a stable release - Make DscSrcPackage working * apt/gtk/widgets.py: - Fix the code and document the signals * Introduce new documentation build with Sphinx - Contains style Guide (Closes: #481562) - debian/rules: Build the documentation here - setup.py: Remove pydoc building and add new docs. - debian/examples: Include examples from documentation - debian/python-apt.docs: + Change html/ to build/doc/html. + Add build/doc/text for the text-only documentation * setup.py: - Only create build/data when building, not all the time - Remove build/mo and build/data on clean -a * debian/control: - Remove the Conflicts on python2.3-apt, python2.4-apt, as they are only needed for oldstable (sarge) - Build-Depend on python-sphinx (>= 0.5) * aptsources/distinfo.py: - Allow @ in mirror urls (Closes: #478171) (LP: #223097) * Merge Ben Finney's whitespace changes (Closes: #481563) * Merge Ben Finney's do not use has_key() (Closes: #481878) * Do not use deprecated form of raise statement (Closes: #494259) * Add support for PkgRecords.SHA256Hash (Closes: #456113)
2009-01-12* apt/debfile.py: Do not use mixedCase anymoreJulian Andres Klode1-69/+75
In accordance with the latest change of the guidelines, mixedCase names may not be used anymore for new modules.
2009-01-12* apt/cache.py: Introduce isVirtualPackage()Julian Andres Klode1-0/+5
2009-01-12* apt/README.apt: Point to doc/source/coding.rstJulian Andres Klode1-7/+1
2009-01-12doc/source/coding.rst: New python coding guidelinesJulian Andres Klode1-10/+22
The exception for mixedCase names is now only granted for modules introduced prior to version 0.7.9 and changes thereto. Modules which are listed as deprecated in the documentation of Python 2.6 should be avoided. has_key() may only be used on TagSection objects.
2009-01-12Cleanup: Comparisons to True/False, ==/!= None, deprecated modulesJulian Andres Klode19-108/+98
2009-01-11* doc/source/apt_pkg/cache.rst: Mention the SHA256Hash is new in 0.7.9Julian Andres Klode1-0/+2
2009-01-11* Add support for PkgRecords.SHA256Hash (Closes: #456113)Julian Andres Klode3-1/+9
2009-01-11* debian/changelog: Do not use deprecated form of raise statement (Closes: ↵Julian Andres Klode1-1/+2
#494259)
2009-01-11* Merge Ben Finney's do not use has_key() (Closes: #481878)Julian Andres Klode9-22/+23
A little bit adjusted to not remove the has_key() methods, and to use has_key() where needed [the low-level part does not have the needed functionality for 'key in mapping'].
2009-01-11Merge Ben Finney's whitespace changes (Closes: #481563)Julian Andres Klode76-1796/+1900
2009-01-11aptsources/distro.py: No deprecated form of raise statementJulian Andres Klode1-2/+2
2009-01-11* apt/cache.py: PEP 8 cleanup, no deprecated raiseJulian Andres Klode1-37/+61
2009-01-11* doc/: Small updates, add PkgSourceListJulian Andres Klode2-38/+64
2009-01-11doc/source/**.rst: rst Style changes.Julian Andres Klode4-113/+103
This changes our style to match the Python documentation.
2009-01-11* doc/source/apt_pkg/cache.rst: Add the last classesJulian Andres Klode1-6/+435
There is no description for MetaIndex yet, but this will be added soon.
2009-01-10* doc/source/apt_pkg/cache.rst: Add PkgAcqFile, AcquireItem, and ConfigurationJulian Andres Klode1-0/+175
Not documented: MetaIndex PackageIndexFile PkgManager PkgRecords PkgSourceList PkgSrcRecords ProblemResolver TagFile TagSection (9)
2009-01-10* doc/: Heavily improve documentationJulian Andres Klode7-14/+655
Complete the documentation of pkgCache, pkgDepCache, pkgCache::Package. Introduce new documentation for pkgCache::Version, pkgCache::Dependency, pkgCache::PackageFile, pkgcache::Description. There is also an example now which checks for missing dependencies.
2009-01-10* aptsources/distinfo.py: Allows numbers in urlsJulian Andres Klode1-1/+1
2009-01-10* also close LP: #223097Julian Andres Klode1-2/+2
2009-01-10* aptsources/distinfo.py: Allow @ in mirror urls (Closes: #478171)Julian Andres Klode2-2/+4
2009-01-09Remove inconsistent use of tabs and spaces (Closes: #505443)Julian Andres Klode1-0/+1
2009-01-09Contains style Guide (Closes: #481562)Julian Andres Klode1-0/+1
2009-01-09* doc/source/coding.rst: Add the jak branchJulian Andres Klode1-0/+7
2009-01-09* setup.py, doc/source/conf.py: Fix building by adding build/lib* to PYTHONPATHJulian Andres Klode7-10/+27
We now build the extension first, and then the documentation. Also add the text docs.
2009-01-09* Introduce the new documentation and add 0.7.9~exp2 to changelog.Julian Andres Klode29-52/+1453
The new documentation is built using sphinx (>= 0.5) [other versions may work too, but let's be safe].
2009-01-09* apt/gtk/widgets: Reformat docstrings a bit, for sphinxJulian Andres Klode1-41/+18
Sphinx autodoc requires reStructuredText in docstrings, we format the list of signals with light markup.
2009-01-09* apt/debfile: Fix and cleanupJulian Andres Klode1-204/+198
This fixes various problems. Most things should work now. I have also removed the get*() methods, because we have not had these methods in a stable python-apt release yet, and they are deprecated.
2009-01-09* apt/gtk/widgets.py: Fix it and clean it up.Julian Andres Klode1-95/+164
Everything is now documented, we follow PEP 8 (except for naming conventions), etc.
2009-01-09* apt/cdrom.py: Cleanup, support sources.list.dJulian Andres Klode1-21/+64
2009-01-09* apt/package.py: Cleanup, move Origin to module-level, enhance RecordJulian Andres Klode1-165/+277
This commit includes multiple changes: First of all, the code has been adjusted to follow PEP 8 and the documentation has been improved. Secondly, the Origin class has been moved out of the Package class into the module, and its __repr__ has been changed. Thirdly, the Record class has been enhances with some new methods, and the attribute containing the string has been removed, as we can reproduce the string using the TagSection in the _rec attribute. The methods added are __contains__(), __iter__(), get() and iteritems(). Fourthly, the method getChangelog() has been fixed in some areas, especially in the exception handling. The method/property installedFiles() is now enclosing its file access into a try/finally block. All the testing code has been moved into a _test() function for now, until the new testing functionality is implemented.
2009-01-09* apt/progress.py: CleanupJulian Andres Klode1-148/+204
This is the first part of a cleanup series. The code has been changed in terms of indentation at some places, the lines have all been shortened to 79 chars or less, everything has been documented, the (non-functional) testing code has been removed, and more...
2009-01-09* apt/debfile.py, apt/package.py: Use @propertyJulian Andres Klode2-46/+47
Use @property instead of x = property(x), where x is the function name.
2009-01-09Cleanup: Remove whitespace at the end of line in all python codes.Julian Andres Klode29-196/+196
2009-01-08* aptsources/distinfo.py:Michael Vogt3-12/+20
- fix too restrictive mirror url check * aptsources/distro.py: - only add nearest_server and server to the mirrors if they are defined
2009-01-08fix bug in candidateInstalledSize propertyMichael Vogt2-0/+5