Incompatible API change! I hope this doesn't bite too many
bindings users. But better late than never, having a flags()
function does not make much sense.
- write more manpages
-- bindings: selection.flags() should be a attribute and not a method
-
-- rename repodata_lookup_id_uninternalized to repodata_lookup_id_voidid_uninternalized
- and add a notfound argument
-
IDEAS:
drop SEARCH_FILES and add SEARCH_BASENAME instead?
typedef struct {
Pool* const pool;
+ int const flags;
} Selection;
typedef struct {
queue_free(&$self->q);
solv_free($self);
}
- int flags() {
- return $self->flags;
- }
#ifdef SWIGRUBY
%rename("isempty?") isempty;
#endif
print "[ignoring case for '$arg']\n" unless $sel->isempty();
}
die("nothing matches '$arg'\n") if $sel->isempty();
- print "[using file list match for '$arg']\n" if $sel->flags() & $solv::Selection::SELECTION_FILELIST;
- print "[using capability match for '$arg']\n" if $sel->flags() & $solv::Selection::SELECTION_PROVIDES;
+ print "[using file list match for '$arg']\n" if $sel->{flags} & $solv::Selection::SELECTION_FILELIST;
+ print "[using capability match for '$arg']\n" if $sel->{flags} & $solv::Selection::SELECTION_PROVIDES;
push @jobs, $sel->jobs($cmdactionmap{$cmd});
}
if sel.isempty():
print("nothing matches '%s'" % arg)
sys.exit(1)
- if sel.flags() & solv.Selection.SELECTION_FILELIST:
+ if sel.flags & solv.Selection.SELECTION_FILELIST:
print("[using file list match for '%s']" % arg)
- if sel.flags() & solv.Selection.SELECTION_PROVIDES:
+ if sel.flags & solv.Selection.SELECTION_PROVIDES:
print("[using capability match for '%s']" % arg)
jobs += sel.jobs(cmdactionmap[cmd])