summaryrefslogtreecommitdiff
path: root/doc/examples/update.py
diff options
context:
space:
mode:
Diffstat (limited to 'doc/examples/update.py')
-rwxr-xr-xdoc/examples/update.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/examples/update.py b/doc/examples/update.py
index 5929c9f8..3ff80fde 100755
--- a/doc/examples/update.py
+++ b/doc/examples/update.py
@@ -4,9 +4,9 @@ import apt_pkg
import os.path
if __name__ == "__main__":
- apt_pkg.Config.Set("APT::Update::Pre-Invoke::",
+ apt_pkg.config.set("APT::Update::Pre-Invoke::",
"touch /tmp/update-about-to-run")
- apt_pkg.Config.Set("APT::Update::Post-Invoke::",
+ apt_pkg.config.set("APT::Update::Post-Invoke::",
"touch /tmp/update-was-run")
c = apt.Cache()
res = c.update(apt.progress.TextFetchProgress())