From af9b07825037bd5dd838072329872db8459777ef Mon Sep 17 00:00:00 2001 From: Jacob Pipkin Date: Fri, 29 Jun 2012 07:52:50 -0500 Subject: fixed bug where update_tree didn't do anything with check_slackbuilds_txt knowledge --- SBO-Lib/lib/SBO/Lib.pm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'SBO-Lib/lib/SBO/Lib.pm') diff --git a/SBO-Lib/lib/SBO/Lib.pm b/SBO-Lib/lib/SBO/Lib.pm index 057a60d..c50f92b 100644 --- a/SBO-Lib/lib/SBO/Lib.pm +++ b/SBO-Lib/lib/SBO/Lib.pm @@ -144,13 +144,13 @@ sub rsync_sbo_tree { sub fetch_tree { check_home (); print "Pulling SlackBuilds tree...\n"; - rsync_sbo_tree (); + rsync_sbo_tree (), return; } sub update_tree { - check_slackbuilds_txt (); + fetch_tree (), return unless check_slackbuilds_txt (); print "Updating SlackBuilds tree...\n"; - rsync_sbo_tree (); + rsync_sbo_tree (), return; } # if the SLACKBUILDS.TXT is not in $config{SBO_HOME}, we assume the tree has -- cgit v1.2.3