diff options
author | Andreas Guldstrand <andreas.guldstrand@gmail.com> | 2016-08-28 14:34:53 +0200 |
---|---|---|
committer | Andreas Guldstrand <andreas.guldstrand@gmail.com> | 2016-08-28 14:34:53 +0200 |
commit | d1c10b2f406b0e2b38bfd61022de3d640580c738 (patch) | |
tree | a3dce170f16feaef9bf0dfba561c228f8e90047d /SBO-Lib/lib/SBO/Lib/Tree.pm | |
parent | 5f6818be6eca7b849de73947d2d5a5c408c3624c (diff) | |
download | sbotools2-d1c10b2f406b0e2b38bfd61022de3d640580c738.tar.xz |
SBO::Lib::Info/Tree: move get_orig_version from ::Tree to ::Info
and update ::Pkgs accordingly
Diffstat (limited to 'SBO-Lib/lib/SBO/Lib/Tree.pm')
-rw-r--r-- | SBO-Lib/lib/SBO/Lib/Tree.pm | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/SBO-Lib/lib/SBO/Lib/Tree.pm b/SBO-Lib/lib/SBO/Lib/Tree.pm index c347659..5fa321e 100644 --- a/SBO-Lib/lib/SBO/Lib/Tree.pm +++ b/SBO-Lib/lib/SBO/Lib/Tree.pm @@ -13,7 +13,6 @@ use Exporter 'import'; our @EXPORT_OK = qw{ get_orig_location - get_orig_version get_sbo_location get_sbo_locations is_local @@ -59,27 +58,6 @@ sub get_orig_location { return $orig{$sbo}; } -=head2 get_orig_version - - my $ver = get_orig_version($sbo); - -C<get_orig_version()> returns the version in the SlackBuilds.org tree for the -given C<$sbo>. - -=cut - -sub get_orig_version { - script_error('get_orig_version requires an argument.') unless @_ == 1; - my $sbo = shift; - - my $location = get_orig_location($sbo); - - return $location if not defined $location; - - return get_sbo_version($location); -} - - =head2 get_sbo_location my $loc = get_sbo_location($sbo, ...); |