diff options
author | Florent Villard <warly@mandriva.com> | 2006-08-11 13:53:09 +0000 |
---|---|---|
committer | Florent Villard <warly@mandriva.com> | 2006-08-11 13:53:09 +0000 |
commit | 15c96fca07fae70dec6cb12d9ee44a9421527d14 (patch) | |
tree | 19b1eb6d8e12d6eaeb1703a69ecd050367e7894c /lib | |
parent | d733d4d499fc012f716e8b2ba6cbd304993dbe63 (diff) | |
download | mga-youri-core-15c96fca07fae70dec6cb12d9ee44a9421527d14.tar mga-youri-core-15c96fca07fae70dec6cb12d9ee44a9421527d14.tar.gz mga-youri-core-15c96fca07fae70dec6cb12d9ee44a9421527d14.tar.bz2 mga-youri-core-15c96fca07fae70dec6cb12d9ee44a9421527d14.tar.xz mga-youri-core-15c96fca07fae70dec6cb12d9ee44a9421527d14.zip |
add a section per package for the final upload procedure where youri should not try to guess the section
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Youri/Package.pm | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/Youri/Package.pm b/lib/Youri/Package.pm index 310961d..6218d6e 100644 --- a/lib/Youri/Package.pm +++ b/lib/Youri/Package.pm @@ -41,10 +41,12 @@ sub new { croak "Abstract class" if $class eq __PACKAGE__; my %options = ( + section => '', @_ ); my $self = bless { + _section => $options{section} }, $class; $self->_init(%options); @@ -56,6 +58,11 @@ sub _init { # do nothing } +sub _get_section { + my ($self) = @_; + $self->{_section} +} + =head2 get_pattern($name, $version, $release, $arch) Returns a pattern matching a file for a package, using available informations. |