summaryrefslogtreecommitdiff
path: root/examples/pysolv
diff options
context:
space:
mode:
authorMichael Schroeder <mls@suse.de>2012-12-05 13:31:53 +0100
committerMichael Schroeder <mls@suse.de>2012-12-05 13:31:53 +0100
commit56f5e60ce72a2ca18dd2533061a0f207bd381ed0 (patch)
treefd9cadb18a2abad40f34c787da9c06d81e544fd8 /examples/pysolv
parent510dd15e9bc4fbe6a733c3c305929c81f9999e87 (diff)
downloadlibsolv-56f5e60ce72a2ca18dd2533061a0f207bd381ed0.tar.gz
libsolv-56f5e60ce72a2ca18dd2533061a0f207bd381ed0.tar.bz2
libsolv-56f5e60ce72a2ca18dd2533061a0f207bd381ed0.zip
Add Dep.Rel() method and a couple of Selection constructors
Diffstat (limited to 'examples/pysolv')
-rwxr-xr-xexamples/pysolv5
1 files changed, 2 insertions, 3 deletions
diff --git a/examples/pysolv b/examples/pysolv
index e898c09..b6b58ec 100755
--- a/examples/pysolv
+++ b/examples/pysolv
@@ -644,7 +644,7 @@ if options.repos:
if hasattr(repo, 'handle'):
if not repofilter:
repofilter = pool.Selection()
- repofilter.add_raw(Job.SOLVER_SOLVABLE_REPO|Job.SOLVER_SETREPO|Job.SOLVER_SETVENDOR, repo.handle.id)
+ repofilter.add(repo.handle.Selection(Job.SOLVER_SETVENDOR))
if cmd == 'search':
pool.createwhatprovides()
@@ -713,8 +713,7 @@ for arg in args:
jobs += sel.jobs(cmdactionmap[cmd])
if not jobs and (cmd == 'up' or cmd == 'dup' or cmd == 'verify' or repofilter):
- sel = pool.Selection()
- sel.add_raw(Job.SOLVER_SOLVABLE_ALL, 0)
+ sel = pool.Selection_all()
if repofilter:
sel.filter(repofilter)
jobs += sel.jobs(cmdactionmap[cmd])