Class: RPM::Provide

Inherits:
Dependency show all
Defined in:
ext/rpm/dependency.c

Instance Method Summary collapse

Methods inherited from Dependency

#eq?, #flags, #flagstag, #ge?, #gt?, #le?, #lt?, #name, #nametag, #owner, #satisfy?, #version, #versiontag

Constructor Details

#initialize(name, version, flags, owner) ⇒ Object



42
43
44
45
46
47
48
49
50
51
# File 'ext/rpm/dependency.c', line 42

static VALUE
provide_initialize(VALUE dep, VALUE name, VALUE version,
					  VALUE flags, VALUE owner)
{
	dependency_initialize(dep,name,version,flags,owner);
	rb_ivar_set(dep, id_nametag, INT2NUM(RPMTAG_PROVIDENAME));
	rb_ivar_set(dep, id_versiontag, INT2NUM(RPMTAG_PROVIDEVERSION));
	rb_ivar_set(dep, id_flagstag, INT2NUM(RPMTAG_PROVIDEFLAGS));
	return dep;
}