From a9ce52a79860ecd7fe620c2637a502676bdffa25 Mon Sep 17 00:00:00 2001 From: Andreas Guldstrand Date: Fri, 12 Feb 2016 18:00:09 +0100 Subject: Add show_version to sbo scripts --- sbocheck | 2 +- sboclean | 2 +- sboconfig | 2 +- sbofind | 2 +- sboinstall | 2 +- sboremove | 2 +- sbosnap | 2 +- sboupgrade | 2 +- 8 files changed, 8 insertions(+), 8 deletions(-) diff --git a/sbocheck b/sbocheck index b551b1a..0177dbf 100755 --- a/sbocheck +++ b/sbocheck @@ -13,7 +13,7 @@ use 5.16.0; use strict; use warnings FATAL => 'all'; -use SBO::Lib qw/ update_tree get_available_updates script_error open_fh is_local /; +use SBO::Lib qw/ update_tree get_available_updates script_error open_fh is_local show_version /; use Getopt::Long; use File::Basename; use List::Util 'max'; diff --git a/sboclean b/sboclean index 3f0e495..6a52450 100755 --- a/sboclean +++ b/sboclean @@ -13,7 +13,7 @@ use 5.16.0; use strict; use warnings FATAL => 'all'; -use SBO::Lib qw/ usage_error script_error in /; +use SBO::Lib qw/ usage_error script_error in show_version /; use File::Basename; use Getopt::Long qw(:config bundling); use File::Path qw(remove_tree); diff --git a/sboconfig b/sboconfig index e50c81a..9233c6a 100755 --- a/sboconfig +++ b/sboconfig @@ -13,7 +13,7 @@ use 5.16.0; use strict; use warnings FATAL => 'all'; -use SBO::Lib qw/ usage_error script_error $tempdir open_read open_fh %config $conf_dir $conf_file /; +use SBO::Lib qw/ usage_error script_error $tempdir open_read open_fh %config $conf_dir $conf_file show_version /; use File::Basename; use Getopt::Long; use File::Copy; diff --git a/sbofind b/sbofind index 8daf9e4..9025e3b 100755 --- a/sbofind +++ b/sbofind @@ -13,7 +13,7 @@ use 5.16.0; use strict; use warnings FATAL => 'all'; -use SBO::Lib qw/ slackbuilds_or_fetch script_error open_read get_build_queue %config $slackbuilds_txt $repo_path /; +use SBO::Lib qw/ slackbuilds_or_fetch script_error open_read get_build_queue %config $slackbuilds_txt $repo_path show_version /; use File::Basename; use Getopt::Long qw(:config bundling); diff --git a/sboinstall b/sboinstall index 13c07f0..aa0706c 100755 --- a/sboinstall +++ b/sboinstall @@ -13,7 +13,7 @@ use 5.16.0; use strict; use warnings FATAL => 'all'; -use SBO::Lib qw/ usage_error slackbuilds_or_fetch get_build_queue merge_queues get_sbo_locations get_installed_packages get_inst_names get_installed_cpans get_sbo_location user_prompt process_sbos print_failures %config get_arch /; +use SBO::Lib qw/ usage_error slackbuilds_or_fetch get_build_queue merge_queues get_sbo_locations get_installed_packages get_inst_names get_installed_cpans get_sbo_location user_prompt process_sbos print_failures %config get_arch show_version /; use Getopt::Long qw(:config bundling); use File::Basename; diff --git a/sboremove b/sboremove index dd05ca9..ba54066 100755 --- a/sboremove +++ b/sboremove @@ -13,7 +13,7 @@ use 5.16.0; use strict; use warnings FATAL => 'all'; -use SBO::Lib qw/ get_inst_names get_installed_packages get_sbo_location get_build_queue merge_queues get_requires get_readme_contents get_sbo_location /; +use SBO::Lib qw/ get_inst_names get_installed_packages get_sbo_location get_build_queue merge_queues get_requires get_readme_contents get_sbo_location show_version /; use Getopt::Long qw(:config bundling); use File::Basename; diff --git a/sbosnap b/sbosnap index 3931409..94b1ce1 100755 --- a/sbosnap +++ b/sbosnap @@ -13,7 +13,7 @@ use 5.16.0; use strict; use warnings FATAL => 'all'; -use SBO::Lib qw/ fetch_tree update_tree %config /; +use SBO::Lib qw/ fetch_tree update_tree %config show_version /; use File::Basename; use Getopt::Long; diff --git a/sboupgrade b/sboupgrade index cb5cc10..0f661ad 100755 --- a/sboupgrade +++ b/sboupgrade @@ -13,7 +13,7 @@ use 5.16.0; use strict; use warnings FATAL => 'all'; -use SBO::Lib qw/ get_available_updates usage_error slackbuilds_or_fetch uniq get_sbo_location get_inst_names get_installed_packages get_build_queue get_sbo_locations merge_queues user_prompt process_sbos print_failures %config /; +use SBO::Lib qw/ get_available_updates usage_error slackbuilds_or_fetch uniq get_sbo_location get_inst_names get_installed_packages get_build_queue get_sbo_locations merge_queues user_prompt process_sbos print_failures %config show_version /; use Getopt::Long qw(:config bundling); use File::Basename; use File::Copy; -- cgit v1.2.3