summaryrefslogtreecommitdiff
path: root/doc/examples
diff options
context:
space:
mode:
authorMichael Vogt <michael.vogt@ubuntu.com>2005-04-11 14:30:01 +0000
committerMichael Vogt <michael.vogt@ubuntu.com>2005-04-11 14:30:01 +0000
commitfa60f6847ebc68383799b0a8f4fb36b16726d0f7 (patch)
tree95d38444c287c406b24184b73d1484204b315685 /doc/examples
parenta8074615c2bac880bf4fd7d5b15e621b88a20052 (diff)
downloadpython-apt-fa60f6847ebc68383799b0a8f4fb36b16726d0f7.tar.gz
* added Cdrom.Ident(), improved the examples
Diffstat (limited to 'doc/examples')
-rw-r--r--doc/examples/cdrom.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/doc/examples/cdrom.py b/doc/examples/cdrom.py
index e1873093..bf044d7c 100644
--- a/doc/examples/cdrom.py
+++ b/doc/examples/cdrom.py
@@ -15,10 +15,15 @@ cdrom = apt_pkg.GetCdrom()
print cdrom
progress = CdromProgress()
-apt_pkg.Config.Set("APT::CDROM::Rename", "True")
+(res,ident) = cdrom.Ident(progress)
+print "ident result is: %s (%s) " % (res, ident)
+
+apt_pkg.Config.Set("APT::CDROM::Rename", "True")
cdrom.Add(progress)
+
+
print "Exiting"
sys.exit(0)