summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Vogt <michael.vogt@ubuntu.com>2009-01-26 09:19:38 +0100
committerMichael Vogt <michael.vogt@ubuntu.com>2009-01-26 09:19:38 +0100
commit52546cc5e1a3980301286b8c2c14354d0b3b6dc5 (patch)
tree425d01bc1d9ba0c11a30fe2b0f54af0c0f383203
parentefceaa5a5d14994e30c9539e719edd8cddc68366 (diff)
downloadpython-apt-52546cc5e1a3980301286b8c2c14354d0b3b6dc5.tar.gz
apt/package.py: typo in getdefaulttimeout, add changelog to simple test
-rw-r--r--apt/package.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/apt/package.py b/apt/package.py
index 10b55dc6..3d7846e4 100644
--- a/apt/package.py
+++ b/apt/package.py
@@ -593,7 +593,7 @@ class Package(object):
"src_pkg": src_pkg,
"src_ver": src_ver}
- timeout = socket.getdefaultimeout()
+ timeout = socket.getdefaulttimeout()
# FIXME: when python2.4 vanishes from the archive,
# merge this into a single try..finally block (pep 341)
@@ -778,9 +778,11 @@ def _test():
print "homepage: %s" % pkg.homepage
print "rec: ", pkg.candidateRecord
+
# now test install/remove
progress = apt.progress.OpTextProgress()
cache = apt.Cache(progress)
+ print cache["2vcard"].getChangelog()
for i in True, False:
print "Running install on random upgradable pkgs with AutoFix: %s " % i
for pkg in cache: