summaryrefslogtreecommitdiff
path: root/apt/progress/base.py
AgeCommit message (Collapse)AuthorFilesLines
2014-01-06Use a single code base for Python 2 and 3Julian Andres Klode1-1/+2
This is much better than running 2to3 during the build, as it gives us more control over the Python 3 code.
2014-01-06Use print_function everywhereJulian Andres Klode1-1/+3
This brings the code closer to Python 3. Automatically converted using 2to3 -f print.
2012-07-28Fix typos: the the -> the (closes: #679432)Jakub Wilk1-1/+1
2012-06-12Drop __del__ statement, which is unsafe: ↵Evan Dandrea1-4/+1
http://www.algorithm.co.il/blogs/programming/python-gotchas-1-__del__-is-not-the-opposite-of-__init__/
2012-06-12merge fix from lp:~ev/python-apt/dont-leak-fds, many thanksMichael Vogt1-0/+4
2011-12-01apt/progress/base.py: fix silly leftover from last commitMichael Vogt1-2/+0
2011-12-01py3 fixes/cleanMichael Vogt1-0/+2
2011-12-01* apt/progress/base.py:Michael Vogt1-1/+3
- write exception text to stderr to avoid hidding exceptions like "pre-configure failed" from libapt (thanks to Jean-Baptiste Lallement)
2011-01-10merged lp:~geser/ubuntu/natty/python-apt/build-with-py3.2 (manually as bzr ↵Michael Vogt1-3/+3
thinks the branches have nothing in common)
2010-03-01Some stylistic changes.Julian Andres Klode1-6/+3
2010-03-01Style fixes.Julian Andres Klode1-2/+4
2010-02-17apt/progress/old.py: move compat updateInterface hereMichael Vogt1-4/+0
2010-02-17apt/progress/base.py: more compat fixesMichael Vogt1-1/+8
2010-02-17apt/progress/base.py: call pipe ends {write,status}_streamMichael Vogt1-6/+6
2010-02-17* apt/cache.py:Michael Vogt1-7/+7
- call install_progress.startUpdate()/finishUpdate() to keep compatibility with older code * apt/progress/base.py: - restore "self.statusfd, self.writefd" type, provide additional self.status_pipe and self.write_pipe file like objects
2010-02-02apt/progress/base.py: select.error objects do not have an errno attribute ↵Julian Andres Klode1-2/+2
(Closes: #568005)
2010-01-20apt/progress/base.py: Add InstallProgress.dpkg_status_change.Julian Andres Klode1-3/+8
2010-01-17apt/progress/base.py: Fix some parsing of dpkg status fd.Julian Andres Klode1-3/+9
2010-01-17apt/progress/base.py: Use attributes of IOError and OSError object.Julian Andres Klode1-6/+6
Do not treat them as tuples, but use the attributes. This is way more 'modern'.
2010-01-15Make all class-level constants have uppercase names.Julian Andres Klode1-1/+1
2009-09-16Merge 0.7.13.0 - 0.7.13.3 from unstable.Julian Andres Klode1-3/+15
* apt/cache.py: - add actiongroup() method (backport from 0.7.92) - re-work the logic in commit() to fail if installArchives() returns a unexpected result * apt/progress/__init__.py: - catch exceptions in pm.DoInstall() * apt/package.py: - Export if a package is an essential one (Closes: #543428) * python/depcache.cc: - Make ActionGroups context managers so apt.Cache.actiongroup() has the same behavior as in 0.7.92 * apt/cache.py: - Add raiseOnError option to Cache.update() (Closes: #545474) * apt/package.py: - Use the source version instead of the binary version in fetch_source(). * apt/progress/__init__.py: - Correctly ignore ECHILD by checking before EINTR (Closes: #546007) * apt/cache.py: - Convert argument to str in __getitem__() (Closes: #542965).
2009-07-31apt/progress: Large update, introducing apt.progress.base.InstallProgress.Julian Andres Klode1-10/+125
This contains many updates including the introduction of a new InstallProgress class which replaces the old InstallProgress and DpkgInstallProgress classes.
2009-07-31apt/progress/base.py: Introduce new base progress classes.Julian Andres Klode1-0/+164
Also adjust the class in apt/progress/text.py to derive from this instead of the classes in apt_pkg (which will be dropped).