diff options
| author | Michael Vogt <michael.vogt@ubuntu.com> | 2005-04-11 14:30:01 +0000 |
|---|---|---|
| committer | Michael Vogt <michael.vogt@ubuntu.com> | 2005-04-11 14:30:01 +0000 |
| commit | fa60f6847ebc68383799b0a8f4fb36b16726d0f7 (patch) | |
| tree | 95d38444c287c406b24184b73d1484204b315685 /doc/examples | |
| parent | a8074615c2bac880bf4fd7d5b15e621b88a20052 (diff) | |
| download | python-apt-fa60f6847ebc68383799b0a8f4fb36b16726d0f7.tar.gz | |
* added Cdrom.Ident(), improved the examples
Diffstat (limited to 'doc/examples')
| -rw-r--r-- | doc/examples/cdrom.py | 7 |
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) |
