summaryrefslogtreecommitdiff
path: root/doc/source/examples/cache-pkgfile.py
diff options
context:
space:
mode:
authorJulian Andres Klode <jak@debian.org>2009-06-04 18:54:50 +0200
committerJulian Andres Klode <jak@debian.org>2009-06-04 18:54:50 +0200
commitcdabff6d329baba8024224b362f79d822ddd943e (patch)
tree66417ca63d9a7a29afb39350e23dd1b7ce3073b8 /doc/source/examples/cache-pkgfile.py
parent75567ebb307ea8cdc9a7c36d8d5a9beb3aca1aa6 (diff)
downloadpython-apt-cdabff6d329baba8024224b362f79d822ddd943e.tar.gz
apt, aptsources, doc: Update to use the new names.
Diffstat (limited to 'doc/source/examples/cache-pkgfile.py')
-rw-r--r--doc/source/examples/cache-pkgfile.py14
1 files changed, 7 insertions, 7 deletions
diff --git a/doc/source/examples/cache-pkgfile.py b/doc/source/examples/cache-pkgfile.py
index a7c22c97..1300a55c 100644
--- a/doc/source/examples/cache-pkgfile.py
+++ b/doc/source/examples/cache-pkgfile.py
@@ -6,19 +6,19 @@ def main():
"""Example for PackageFile()"""
apt_pkg.init()
cache = apt_pkg.Cache()
- for pkgfile in cache.FileList:
- print 'Package-File:', pkgfile.FileName
- print 'Index-Type:', pkgfile.IndexType # 'Debian Package Index'
- if pkgfile.NotSource:
+ for pkgfile in cache.file_list:
+ print 'Package-File:', pkgfile.file_name
+ print 'Index-Type:', pkgfile.index_type # 'Debian Package Index'
+ if pkgfile.not_source:
print 'Source: None'
else:
- if pkgfile.Site:
+ if pkgfile.site:
# There is a source, and a site, print the site
- print 'Source:', pkgfile.Site
+ print 'Source:', pkgfile.site
else:
# It seems to be a local repository
print 'Source: Local package file'
- if pkgfile.NotAutomatic:
+ if pkgfile.not_automatic:
# The system won't be updated automatically (eg. experimental)
print 'Automatic: No'
else: