summaryrefslogtreecommitdiff
path: root/apt/progress
AgeCommit message (Collapse)AuthorFilesLines
2010-01-15Make all class-level constants have uppercase names.Julian Andres Klode2-2/+2
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-09-15merge from mvoJulian Andres Klode1-4/+19
* apt/cache.py: - re-work the logic in commit() to fail if installArchives() returns a unexpected result * apt/progress/__init__.py: - catch exceptions in pm.DoInstall()
2009-09-10apt/progress/__init__.py: Correctly ignore ECHILD by checking before EINTR ↵Julian Andres Klode1-2/+2
(Closes: #546007) As the check for != EINTR will re-raise the error, we have to check ECHILD before it.
2009-09-03apt/progress/__init__.py: doc string update for run()Michael Vogt1-1/+5
2009-09-03* apt/progress/__init__.py:Michael Vogt1-2/+9
- catch exceptions in pm.DoInstall()
2009-09-03apt/progress/__init__.py: doc updateMichael Vogt1-1/+5
2009-07-31apt/progress: Large update, introducing apt.progress.base.InstallProgress.Julian Andres Klode5-303/+223
This contains many updates including the introduction of a new InstallProgress class which replaces the old InstallProgress and DpkgInstallProgress classes.
2009-07-31apt/progress/gtk2.py: Cleanup.Julian Andres Klode1-15/+21
2009-07-31apt/progress/old.py: Derive some more old classes from new classes.Julian Andres Klode1-33/+10
OpTextProgress is now derived from text.OpProgress and DumbInstallProgress is derived from base.InstallProgress.
2009-07-31python: Remove the progress classes in apt_pkg.Julian Andres Klode2-34/+30
They have been replaced with apt.progress.base, so stuff like GTK+ or Qt progress classes can be written using subclassing.
2009-07-31apt/progress/base.py: Introduce new base progress classes.Julian Andres Klode2-20/+183
Also adjust the class in apt/progress/text.py to derive from this instead of the classes in apt_pkg (which will be dropped).
2009-07-30Merge 0.7.11.1-0.7.12.0 from unstable.Julian Andres Klode1-5/+11
2009-07-30apt/progress/__init__.py: Fix InstallProgress.waitChild()Julian Andres Klode1-2/+3
- Do not break out of InstallProgress.waitChild()'s loop just because it is hitting EINTR, but only on child exit or on ECHILD.
2009-07-30apt/progress.py: Extract the package name from the status messageJulian Andres Klode1-2/+3
(Closes: #532660)
2009-07-25Exception handling fixes in InstallProgress class.Stephan Peijnik1-4/+13
2009-07-23python/cdrom.cc: Do not check arguments in PkgCdromNew.Julian Andres Klode1-1/+1
2009-07-21apt/progress/old.py: Replace OpProgress.sub_op with OpProgress.subop.Julian Andres Klode1-3/+3
2009-07-19apt/progress/text.py: Always call methods of the parent class.Julian Andres Klode1-1/+10
2009-07-19apt/progress/text.py: Add some docstrings.Julian Andres Klode1-0/+5
2009-07-19apt/progress/text.py: Introduce CdromProgress.Julian Andres Klode1-4/+27
2009-07-19python/cdromprogress.cc: Add apt_pkg.CdromProgress.Julian Andres Klode1-18/+4
2009-07-17apt: Use apt_pkg.gettext instead of Python's gettext.Julian Andres Klode2-5/+3
2009-07-17apt/progress/text.py: Improve final summary.Julian Andres Klode1-14/+22
2009-07-17apt/progress/text.py: Cleanup, add i18n (and try apt translation if we have ↵Julian Andres Klode1-40/+52
none).
2009-07-17apt/progress: Fix apt.progress with COMPAT_0_7Julian Andres Klode2-13/+6
2009-07-17apt/progress/text.py: Don't display complete items in AcquireProgress.fetchJulian Andres Klode1-0/+3
2009-07-16apt/progress/text.py: Limit number of displayed items by display size.Julian Andres Klode1-2/+8
2009-07-16apt/progress/text.py: Print status messages.Julian Andres Klode1-7/+6
2009-07-16apt/progress/gtk2.py: Replace apt.progress with apt.progress.old.Julian Andres Klode1-12/+13
2009-07-16apt/progress: Move apt.progress to apt.progress.oldJulian Andres Klode2-418/+447
2009-07-16apt/progress/text.py: 'Sync' AcquireProgress with the one used for apt-get.Julian Andres Klode1-18/+93
2009-07-16apt/progress/text.py: Introduce new progress classes for text.Julian Andres Klode1-0/+122
These are based on the new classes in apt_pkg and work better, because they correctly clear the screen.
2009-06-15apt/progress/__init__.py: Check for EINTR in select (Closes: #499296)Julian Andres Klode1-1/+7
2009-06-12apt/progress.py: Extract the package name from the status message (Closes: ↵Julian Andres Klode1-4/+7
#532660)
2009-06-08merge with mvojak@debian.org1-0/+20
2009-06-05python/progress.cc, apt/progress/*.py: Use PEP 8 naming conventions for progressJulian Andres Klode2-66/+119
This changes the progress classes to use PEP 8 names. Due to the concept of the deprecation system, this causes methods of subclasses not to be called at all. If a class implements a command with underscores, it is called. If the class also implements the version in mixedCase, this is ignored. This means that all subclasses will not work correctly, because only the method from the parent class is called.
2009-06-04apt, aptsources, doc: Update to use the new names.Julian Andres Klode2-5/+5
2009-05-31Do not store the the Deb path and package name as an attribute of the ↵Sebastian Heinlein1-3/+1
progress class. Furthermore allow to specify more than one file.
2009-05-31Extract the package name from the status messageSebastian Heinlein1-1/+2
2009-05-05* apt/progress/__init__.py:Michael Vogt1-0/+20
- add update_status_full() that takes file_size/partial_size as additional callback arguments - add pulse_items() that takes a addtional "items" tuple that gives the user full access to the individual items that are fetched * python/progress.cc: - low level code for update_status_full and pulse_items()
2009-04-16* apt/*.py: Initial rename work for Bug#481061Julian Andres Klode1-3/+3
A new module, apt.deprecation, is introduced containing functions and classes which assist in the deprecation. The apt_pkg extension gets a new attribute, _COMPAT_0_7 which can be set by defining COMPAT_0_7 at compile time (-DCOMPAT_0_7). The names are changed, and compatibility functions are enabled if bool(apt_pkg._COMPAT_0_7) == True, i.e. if the package has been built with backward compatibility fixes. This commit changes the apt and aptsources packages, the apt_pkg and apt_inst extensions will be the next renames.
2009-04-01* Copyright updates: debian/copyright, etc.Julian Andres Klode2-3/+3
- debian/copyright: Switch to machine-interpretable copyright - apt/*.py: Fix the copyright years and comments.
2009-03-08* apt/progress/: New package, replaces apt.progress and apt.gtkJulian Andres Klode2-0/+799
- apt/progress/gtk2.py: Moved here from apt/gtk/widgets.py - apt/progress/__init__.py: Move here from apt/progress.py