summaryrefslogtreecommitdiff
path: root/doc/examples
diff options
context:
space:
mode:
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)