/usr/share/perl5/DEPS/Ingredientable.pm is in libdeps-perl 0.13-1.1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 | # This file is part of the DEPS/graph-includes package
#
# (c) 2006 Yann Dirson <ydirson@altern.org>
# Distributed under version 2 of the GNU GPL.
# DEPS::Ingredientable
#
# A base class for simple hash-based objects that may be the result of
# applying a transform to ingredients
package DEPS::Ingredientable;
use strict;
use warnings;
use Set::Object qw();
# An ingredient is an object from which the current object is built/derived
sub add_ingredients {
my $self = shift;
my (@ingredients) = @_;
$self->{_INGREDIENTS} = new Set::Object
unless defined $self->{_INGREDIENTS};
$self->{_INGREDIENTS}->insert(@ingredients);
return $self;
}
sub ingredients {
my $self = shift;
my @return;
if (defined $self->{_INGREDIENTS}) {
@return = $self->{_INGREDIENTS}->members();
}
@return;
}
1;
|