diff options
Diffstat (limited to 'lib/Youri/Package')
-rw-r--r-- | lib/Youri/Package/URPM.pm | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/Youri/Package/URPM.pm b/lib/Youri/Package/URPM.pm index 2dcc317..3cd8aa4 100644 --- a/lib/Youri/Package/URPM.pm +++ b/lib/Youri/Package/URPM.pm @@ -110,6 +110,13 @@ sub get_version { return $self->{_header}->version(); } +sub get_full_version { + my ($self) = @_; + croak "Not a class method" unless ref $self; + + return $self->{_header}->epoch() ."-" . $self->{_header}->version() . "-". $self->{_header}->release() +} + sub get_release { my ($self) = @_; croak "Not a class method" unless ref $self; |