PoolQuery q;
q.addKind(splid.kind());
- q.addAttribute(sat::SolvAttr::name, splid.name().asString());
q.setMatchGlob();
for_(it, repos.begin(), repos.end())
q.addRepo(*it);
- if (cap.detail().hasArch())
- q.addAttribute(sat::SolvAttr::arch, cap.detail().arch().asString());
- if (cap.detail().isVersioned())
- q.setEdition(cap.detail().ed(), cap.detail().op());
+ q.addDependency( sat::SolvAttr::name, splid.name().asString(),
+ // only package names (no provides)
+ cap.detail().op(), cap.detail().ed(),
+ // defaults to Rel::ANY (NOOP) if no versioned cap
+ Arch( cap.detail().arch() ) );
+ // defaults Arch_empty (NOOP) if no arch in cap
DBG << "query: " << q << endl;
# norootforbuild
Name: @PACKAGE@
-BuildRequires: libzypp-devel >= 7.6.0
+BuildRequires: libzypp-devel >= 8.0.1
BuildRequires: boost-devel >= 1.33.1
BuildRequires: gettext-devel >= 0.15
BuildRequires: readline-devel >= 5.1