From a8074615c2bac880bf4fd7d5b15e621b88a20052 Mon Sep 17 00:00:00 2001 From: Michael Vogt Date: Mon, 11 Apr 2005 14:19:44 +0000 Subject: * cdrom interface added --- doc/examples/cdrom.py | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 doc/examples/cdrom.py (limited to 'doc/examples/cdrom.py') diff --git a/doc/examples/cdrom.py b/doc/examples/cdrom.py new file mode 100644 index 00000000..e1873093 --- /dev/null +++ b/doc/examples/cdrom.py @@ -0,0 +1,27 @@ +#!/usr/bin/python +# example how to deal with the depcache + +import apt_pkg +import sys, os +import copy + +from progress import CdromProgress + + +# init +apt_pkg.init() + +cdrom = apt_pkg.GetCdrom() +print cdrom + +progress = CdromProgress() +apt_pkg.Config.Set("APT::CDROM::Rename", "True") + +cdrom.Add(progress) + +print "Exiting" +sys.exit(0) + + + + -- cgit v1.2.3