Skip to content

Commit 775a6a5

Browse files
author
Adam McDaniel
committed
Imported Debian version 0.7.94.2ubuntu6.2
1 parent c636dbf commit 775a6a5

236 files changed

Lines changed: 31154 additions & 62501 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎AUTHORS‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,4 @@ mvo Michael Vogt <mvo@debian.org>
44
Michiel Sikkes <michiel@eyesopened.nl>
55
Sebastian Heinlein <glatzor@ubuntu.com>
66
Sean Wheller <sean@inwords.co.za>
7+
Julian Andres Klode <jak@debian.org>

‎apt/__init__.py‎

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -16,23 +16,23 @@
1616
# along with this program; if not, write to the Free Software
1717
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
1818
# USA
19+
1920
# import the core of apt_pkg
21+
"""High-Level Interface for working with apt."""
2022
import apt_pkg
21-
import sys
22-
import os
2323

2424
# import some fancy classes
2525
from apt.package import Package
2626
from apt.cache import Cache, ProblemResolver
27-
from apt.progress import (
28-
OpProgress, FetchProgress, InstallProgress, CdromProgress)
2927
from apt.cdrom import Cdrom
30-
from apt_pkg import SizeToStr, TimeToStr, VersionCompare
28+
29+
if apt_pkg._COMPAT_0_7:
30+
from apt.progress.old import (OpProgress, FetchProgress, InstallProgress,
31+
CdromProgress)
32+
from apt_pkg import (size_to_str as SizeToStr, time_to_str as TimeToStr,
33+
version_compare as VersionCompare)
3134

3235
# init the package system
3336
apt_pkg.init()
3437

35-
36-
#import warnings
37-
#warnings.warn("apt API not stable yet", FutureWarning)
38-
#del warnings
38+
__all__ = ['Cache', 'Cdrom', 'Package']

0 commit comments

Comments
 (0)