summaryrefslogtreecommitdiff
path: root/doc/examples/action.py
diff options
context:
space:
mode:
Diffstat (limited to 'doc/examples/action.py')
-rw-r--r--doc/examples/action.py12
1 files changed, 0 insertions, 12 deletions
diff --git a/doc/examples/action.py b/doc/examples/action.py
index adf26539..9277129e 100644
--- a/doc/examples/action.py
+++ b/doc/examples/action.py
@@ -21,15 +21,6 @@ cache.Update(progress)
print "Exiting"
sys.exit(0)
-
-
-
-
-
-
-
-
-
iter = cache["base-config"]
print "example package iter: %s" % iter
@@ -45,7 +36,6 @@ depcache.Init(progress)
#sys.exit()
-
# get a canidate version
ver= depcache.GetCandidateVer(iter)
print "Candidate version: %s " % ver
@@ -66,7 +56,6 @@ depcache.MarkDelete(iter)
print "DelCount: %s " % depcache.DelCount
print "%s.MarkedDelete(): %s" % (iter.Name, depcache.MarkedDelete(iter))
-
iter = cache["3dchess"]
print "\nMarking '%s' for install" % iter.Name
depcache.MarkInstall(iter)
@@ -100,7 +89,6 @@ for pkg in cache.Packages:
if pkg.CurrentVer != None and not depcache.MarkedInstall(pkg) and depcache.IsUpgradable(pkg):
print "Upgrade didn't upgrade (kept): %s" % pkg.Name
-
print "\nPerforming DistUpgrade"
depcache.Upgrade(True)
print "Keep: %s " % depcache.KeepCount