blob: 2a478b349c481576cf30a12d4ae71f8ef7f6d64f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
# import the core of apt_pkg
import apt_pkg
import sys
import os
# import some fancy classes
from apt.package import Package
from apt.cache import Cache
from apt.progress import OpProgress, FetchProgress, InstallProgress, CdromProgress
from apt_pkg import SizeToStr, TimeToStr, VersionCompare
# init the package system
apt_pkg.init()
if not os.environ.has_key("PYTHON_APT_API_NOT_STABLE"):
import warnings
warnings.warn("Module apt is 100% API stable yet; ", FutureWarning)
del warnings
|